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.
1 parent ae64b4d commit 1729b8fCopy full SHA for 1729b8f
1 file changed
Doc/library/os.rst
@@ -2252,7 +2252,7 @@ features:
2252
import os
2253
for root, dirs, files, rootfd in os.fwalk('python/Lib/email'):
2254
print(root, "consumes", end="")
2255
- print(sum([os.fstatat(rootfd, name).st_size for name in files]),
+ print(sum([os.stat(name, dir_fd=rootfd).st_size for name in files]),
2256
end="")
2257
print("bytes in", len(files), "non-directory files")
2258
if 'CVS' in dirs:
0 commit comments