There was an error while loading. Please reload this page.
1 parent 46aa5d2 commit 8d6591bCopy full SHA for 8d6591b
2 files changed
Doc/library/os.rst
@@ -3208,7 +3208,8 @@ features:
3208
filenames)``.
3209
3210
*dirpath* is a string, the path to the directory. *dirnames* is a list of the
3211
- names of the subdirectories in *dirpath* (excluding ``'.'`` and ``'..'``).
+ names of the subdirectories in *dirpath* (including symlinks to directories,
3212
+ and excluding ``'.'`` and ``'..'``).
3213
*filenames* is a list of the names of the non-directory files in *dirpath*.
3214
Note that the names in the lists contain no path components. To get a full path
3215
(which begins with *top*) to a file or directory in *dirpath*, do
Lib/os.py
@@ -288,7 +288,8 @@ def walk(top, topdown=True, onerror=None, followlinks=False):
288
dirpath, dirnames, filenames
289
290
dirpath is a string, the path to the directory. dirnames is a list of
291
- the names of the subdirectories in dirpath (excluding '.' and '..').
+ the names of the subdirectories in dirpath (including symlinks to directories,
292
+ and excluding '.' and '..').
293
filenames is a list of the names of the non-directory files in dirpath.
294
Note that the names in the lists are just names, with no path components.
295
To get a full path (which begins with top) to a file or directory in
0 commit comments