diff options
Diffstat (limited to 'Doc/library/shutil.rst')
-rw-r--r-- | Doc/library/shutil.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 1f194a0..f8a1b60 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -166,6 +166,14 @@ Directory and files operations rename is not supported when *dst* exists, fallback to copying *src* (with :func:`copy2`) to the *dst* and then remove *src*. +.. function:: disk_usage(path) + + Return disk usage statistics about the given path as a namedtuple including + total, used and free space expressed in bytes. + + .. versionadded:: 3.3 + + Availability: Unix, Windows. .. exception:: Error |