bpo-32557: allow shutil.disk_usage to take a file path on Windows also (GH-9372)

https://bugs.python.org/issue32557
This commit is contained in:
Joe Pamer 2018-09-25 10:57:36 -04:00 committed by Miss Islington (bot)
parent 604e7b9931
commit c8c0249c9e
4 changed files with 34 additions and 4 deletions

View file

@ -343,11 +343,14 @@ 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. On Windows, *path* must be a
directory; on Unix, it can be a file or directory.
total, used and free space, in bytes. *path* may be a file or a
directory.
.. versionadded:: 3.3
.. versionchanged:: 3.8
On Windows, *path* can now be a file or directory.
Availability: Unix, Windows.
.. function:: chown(path, user=None, group=None)