Quick question: recursive touch?
Fredrik Lundh
fredrik at pythonware.com
Wed Oct 6 05:45:24 EDT 1999
Moshe Zadka <moshez at math.huji.ac.il> wrote:
> On Tue, 5 Oct 1999, Jeff Bauer wrote:
>
> > > path_elements = string.split(path, "/")[1:]
> >
> > You might consider using os.sep, rather than
> > "/" slash as your path separator.
>
> Or even better, use the functions in os.path. They know better.
> Can you say:
> c:\webserv/cgi-bin/script ?
> (Have no doubt: I've seen these kind of paths on my NT box)
Or even better, use os.makedirs (!)
</F>
More information about the Python-list
mailing list