Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eec1ed8 + aa71583 commit b0fa4b8Copy full SHA for b0fa4b8
1 file changed
Doc/library/stat.rst
@@ -87,7 +87,7 @@ Example::
87
88
for f in os.listdir(top):
89
pathname = os.path.join(top, f)
90
- mode = os.stat(pathname)[ST_MODE]
+ mode = os.stat(pathname).st_mode
91
if S_ISDIR(mode):
92
# It's a directory, recurse into it
93
walktree(pathname, callback)
0 commit comments