summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorStanley <46876382+slateny@users.noreply.github.com>2022-10-07 22:51:50 (GMT)
committerGitHub <noreply@github.com>2022-10-07 22:51:50 (GMT)
commit0f498f1a95306995ca1e287f552c5c3d856be02d (patch)
tree834bdbb19cea3b9376de0043056e4afb28f711ef /Lib/os.py
parenta54a69989eade3589459d15def53b3c4f21b7551 (diff)
downloadcpython-0f498f1a95306995ca1e287f552c5c3d856be02d.zip
cpython-0f498f1a95306995ca1e287f552c5c3d856be02d.tar.gz
cpython-0f498f1a95306995ca1e287f552c5c3d856be02d.tar.bz2
gh-57179: Add note on symlinks for os.walk (#94799)
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 648188e..fd1e774 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -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