mirror of
https://github.com/python/cpython.git
synced 2025-10-28 09:10:36 +00:00
Issue #12442: add shutil.disk_usage()
This commit is contained in:
parent
59929d9877
commit
210e7ca032
6 changed files with 77 additions and 1 deletions
|
|
@ -164,6 +164,14 @@ Directory and files operations
|
|||
If the destination is on the current filesystem, then simply use rename.
|
||||
Otherwise, copy src (with :func:`copy2`) to the dst and then remove src.
|
||||
|
||||
.. function:: disk_usage(path)
|
||||
|
||||
Return disk usage statistics about the given path as a namedtuple including
|
||||
total, used and free space expressed in bytes.
|
||||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
Availability: Unix, Windows.
|
||||
|
||||
.. exception:: Error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue