Kaydet (Commit) ee3b8354 authored tarafından Cheryl Sabella's avatar Cheryl Sabella Kaydeden (comit) Mariatta

bpo-26330: Update shutil.disk_usage() documentation (GH-5184)

Clarify that on Windows, path must be a directory.
On Unix, path can be a file or a directory.
üst b3dd18d4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment