[Python-bugs-list] [ python-Bugs-576975 ] os.path.walk behavior on symlinks

noreply@sourceforge.net noreply@sourceforge.net
Wed, 03 Jul 2002 07:26:40 -0700


Bugs item #576975, was opened at 2002-07-03 09:26
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=576975&group_id=5470

Category: Documentation
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: Damien Elmes (resolve)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: os.path.walk behavior on symlinks

Initial Comment:
os.path.walk won't recurse on symlinks pointing to
directories. That's okay - it's probably a reasonable
default behavior to have. It would be nice to point
this out in the docstring, however - something like:


"Note: os.path.walk will not recurse into symlinks
pointing to directories. You can accomplish this
yourself by checking os.path.isdir(file) and
os.path.islink(file) in func, and reinvocing walk from
there"

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=576975&group_id=5470