summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Holden <steve@holdenweb.com>2002-08-06 16:07:07 (GMT)
committerSteve Holden <steve@holdenweb.com>2002-08-06 16:07:07 (GMT)
commit545092b063e235bb81706a296ed18618d4293b87 (patch)
treebbb2c74dd5e965b172ef5ee7b3040402a9b340f4
parent3c668c1256fb1ae3233af3f906891c4d8625c717 (diff)
downloadcpython-545092b063e235bb81706a296ed18618d4293b87.zip
cpython-545092b063e235bb81706a296ed18618d4293b87.tar.gz
cpython-545092b063e235bb81706a296ed18618d4293b87.tar.bz2
Add comment about os.path.walk()'s behavior with symbolic links.
-rw-r--r--Doc/lib/libposixpath.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/lib/libposixpath.tex b/Doc/lib/libposixpath.tex
index 4bbb5b6..d195447 100644
--- a/Doc/lib/libposixpath.tex
+++ b/Doc/lib/libposixpath.tex
@@ -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}