summaryrefslogtreecommitdiffstats
path: root/Doc/library/shutil.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/shutil.rst')
-rw-r--r--Doc/library/shutil.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
index a785682..6f70206 100644
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -173,6 +173,14 @@ Directory and files operations
used. Otherwise, *src* is copied (using :func:`copy2`) to *dst* and then
removed.
+.. 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