mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Remove untrue statement about . and .. being included in list of names
passed to walk() visitor.
This commit is contained in:
parent
fb8f1cadb2
commit
e8e87999ab
2 changed files with 4 additions and 4 deletions
|
@ -125,8 +125,8 @@ Calls the function \var{visit} with arguments
|
|||
directory tree rooted at \var{p} (including \var{p} itself, if it is a
|
||||
directory). The argument \var{dirname} specifies the visited directory,
|
||||
the argument \var{names} lists the files in the directory (gotten from
|
||||
\code{posix.listdir(\var{dirname})}, so including \samp{.} and
|
||||
\samp{..}). The \var{visit} function may modify \var{names} to
|
||||
\code{posix.listdir(\var{dirname})}).
|
||||
The \var{visit} function may modify \var{names} to
|
||||
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 \code{del} or slice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue