]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add comment about os.path.walk()'s behavior with symbolic links.
authorSteve Holden <steve@holdenweb.com>
Tue, 6 Aug 2002 16:07:07 +0000 (16:07 +0000)
committerSteve Holden <steve@holdenweb.com>
Tue, 6 Aug 2002 16:07:07 +0000 (16:07 +0000)
Doc/lib/libposixpath.tex

index 4bbb5b6e56900a33866d091624b582910c91cb0e..d19544732b0dd28eb2289375b9417cb856a14f51 100644 (file)
@@ -214,4 +214,9 @@ influence the set of directories visited below \var{dirname}, e.g., to
 avoid visiting certain parts of the tree.  (The object referred to by
 \var{names} must be modified in place, using \keyword{del} or slice
 assignment.)
+
+Note that symbolic links to directories are not treated as subdirectories,
+and that \var{walk} therefore will not visit them. To visit linked
+directories you must identify them with \var{os.path.islink(file)} and
+\var{os.path.isdir(file)}, and invoke \function{walk()} as necessary.
 \end{funcdesc}