mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
bpo-26330: Update shutil.disk_usage() documentation (GH-5184) (GH-5188)
Clarify that on Windows, path must be a directory.
On Unix, path can be a file or a directory.
(cherry picked from commit ee3b83547c
)
This commit is contained in:
parent
bb80645d06
commit
fb8569e36f
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue