diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-08 03:15:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-08 03:15:08 (GMT) |
commit | 1818235f402843db0fbeb21a7954b6ef209c916c (patch) | |
tree | 06eb1996d43237b4db8761087b6952cc8dc59219 /Lib/os.py | |
parent | 1a31799d168d6f75ed0db89b5ea7cefda74be37b (diff) | |
download | cpython-1818235f402843db0fbeb21a7954b6ef209c916c.zip cpython-1818235f402843db0fbeb21a7954b6ef209c916c.tar.gz cpython-1818235f402843db0fbeb21a7954b6ef209c916c.tar.bz2 |
gh-57179: Add note on symlinks for os.walk (GH-94799)
(cherry picked from commit 0f498f1a95306995ca1e287f552c5c3d856be02d)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Diffstat (limited to 'Lib/os.py')
-rw-r--r-- | Lib/os.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -288,7 +288,8 @@ def walk(top, topdown=True, onerror=None, followlinks=False): dirpath, dirnames, filenames dirpath is a string, the path to the directory. dirnames is a list of - the names of the subdirectories in dirpath (excluding '.' and '..'). + the names of the subdirectories in dirpath (including symlinks to directories, + and excluding '.' and '..'). filenames is a list of the names of the non-directory files in dirpath. Note that the names in the lists are just names, with no path components. To get a full path (which begins with top) to a file or directory in |