PyDocs

Nav

File and Directory Access

disk_usage

shutil

function · Added in 3.3 (source) UnixWindows
  • disk_usage(path)
Return disk usage statistics about the given path.

Returned value is a named tuple with attributes 'total', 'used' and
'free', which are the amount of total, used and free space, in bytes.
Changed in 3.8
  • 3.8: On Windows, path can now be a file or directory.
0 Examples
No examples for shutil/disk_usage.
See Also
No see-alsos for shutil/disk_usage
0 Notes
No notes for disk_usage