[Python-bugs-list] [ python-Bugs-576975 ] os.path.walk behavior on symlinks
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 06 Aug 2002 09:12:44 -0700
Bugs item #576975, was opened at 2002-07-03 10: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: Fixed
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"
----------------------------------------------------------------------
>Comment By: Steve Holden (holdenweb)
Date: 2002-08-06 12:12
Message:
Logged In: YES
user_id=88157
I have added a suitable note to this effect.
----------------------------------------------------------------------
Comment By: Steve Holden (holdenweb)
Date: 2002-08-06 11:59
Message:
Logged In: YES
user_id=88157
I have added a suitable note to this effect.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=576975&group_id=5470