This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: os.path.walk behavior on symlinks
Type: enhancement Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fdrake Nosy List: fdrake, holdenweb, resolve
Priority: normal Keywords:

Created on 2002-07-03 14:26 by resolve, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (4)
msg11449 - (view) Author: Damien Elmes (resolve) Date: 2002-07-03 14:26
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"
msg11450 - (view) Author: Steve Holden (holdenweb) * (Python committer) Date: 2002-08-06 15:59
Logged In: YES 
user_id=88157

I have added a suitable note to this effect.
msg11451 - (view) Author: Steve Holden (holdenweb) * (Python committer) Date: 2002-08-06 16:12
Logged In: YES 
user_id=88157

I have added a suitable note to this effect.
msg11452 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2002-08-06 21:37
Logged In: YES 
user_id=3066

Steve fixed this, so we can close the issue report.  Thanks!
History
Date User Action Args
2022-04-10 16:05:28adminsetgithub: 36843
2002-07-03 14:26:40resolvecreate