From 2fc338339064ef8ed3aaf1bc891ba075e3551678 Mon Sep 17 00:00:00 2001 From: Cheryl Sabella Date: Sun, 14 Jan 2018 16:52:56 -0500 Subject: [PATCH] bpo-26330: Document accepted values for shutil.disk_usage() --- Doc/library/shutil.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index 2b84fa2937284c..1527deb167f1e3 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -318,7 +318,8 @@ Directory and files operations Return disk usage statistics about the given path as a :term:`named tuple` with the attributes *total*, *used* and *free*, which are the amount of - total, used and free space, in bytes. + total, used and free space, in bytes. On Windows, *path* must be a + directory; on Unix, it can be a file or directory. .. versionadded:: 3.3