Message143965
Consider code:
for (root, dirs, nondirs) in os.walk(path, followlinks=False):
print (nondirs)
This code will not print symlinks that refer to some dir. I think it is the bug.
In other words: If followlinks is True, we should consider some symlinks as dirs. If not, any symlink is the non-dir.
Patch included.
Also, please fix documentation about this nuance. |
|
Date |
User |
Action |
Args |
2011-09-13 13:02:12 | socketpair | set | recipients:
+ socketpair, docs@python |
2011-09-13 13:02:12 | socketpair | set | messageid: <1315918932.02.0.810529185276.issue12970@psf.upfronthosting.co.za> |
2011-09-13 13:02:11 | socketpair | link | issue12970 messages |
2011-09-13 13:02:11 | socketpair | create | |
|