mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +00:00
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:
parent
604e7b9931
commit
c8c0249c9e
4 changed files with 34 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue