[issue13229] Improve tools for iterating over filesystem directories

Antoine Pitrou report at bugs.python.org
Mon Feb 13 21:16:36 CET 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

Oh, forgot to mention, the term "symlink loop" itself is ambiguous.

There are direct symlink loops: an example is a "some_dir/linky" link pointing to "../some_dir/linky". These will fail when resolving them.

There are indirect symlink loops: "some_dir/linky" pointing to "../some_dir". Resolving them works fine, but recursively walking them produces an infinite recursion.

Lots of fun :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13229>
_______________________________________


More information about the Python-bugs-list mailing list