Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libposixpath.tex @ 24596:a02aba72cbb2 legacy-trunk
Add comment about os.path.walk()'s behavior with symbolic links.
| author | Steve Holden <steve@holdenweb.com> |
|---|---|
| date | Tue, 06 Aug 2002 16:07:07 +0000 |
| parents | 73d145bfd8e4 |
| children | f73259768426 |
line wrap: on
line diff
--- a/Doc/lib/libposixpath.tex Tue Aug 06 15:58:24 2002 +0000 +++ b/Doc/lib/libposixpath.tex Tue Aug 06 16:07:07 2002 +0000 @@ -214,4 +214,9 @@ 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}
