path module

holger krekel pyth at devel.trillke.net
Sat Jul 26 03:50:45 EDT 2003


Ian Bicking wrote:
> On Fri, 2003-07-25 at 14:56, holger krekel wrote:
> > > The multiple walk methods would only be a shortcut anyway.  Again, they
> > > might be difficult in a situation like a URL where directory and file
> > > are intermingled (and maybe ReiserFS 4...?) -- which maybe is okay, a
> > > urlpath object simply wouldn't implement that walker.
> > 
> > Yep, URL pathes have no notion of directories and files.  Thus a general 
> > URL path can't have a 'listdir' method and thus we can't recurse.  
> > You can easily special case it for Apache's "Indexes" view, though :-)
> 
> WebDAV does, though, doesn't it?  But you can still edit the directory
> resource, so it gets overloaded.  WebDAV's use of GET is messed up.

I am not very familiar with the low-level details of WebDAV but i think
determining if something is a directory is done by a PROPGET command. 

cheers,

    holger





More information about the Python-list mailing list