mirror of https://github.com/python/cpython.git
[3.11] gh-83006: Document behavior of `shutil.disk_usage` for non-mounted filesystems on Unix (GH-107031) (#107048)
(cherry picked from commit 6e5f2235f3
)
Co-authored-by: Matthieu Caneill <matthieucan@users.noreply.github.com>
This commit is contained in:
parent
e5d2a19ac5
commit
2895dbd0f6
|
@ -393,6 +393,12 @@ Directory and files operations
|
|||
total, used and free space, in bytes. *path* may be a file or a
|
||||
directory.
|
||||
|
||||
.. note::
|
||||
|
||||
On Unix filesystems, *path* must point to a path within a **mounted**
|
||||
filesystem partition. On those platforms, CPython doesn't attempt to
|
||||
retrieve disk usage information from non-mounted filesystems.
|
||||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
.. versionchanged:: 3.8
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Document behavior of :func:`shutil.disk_usage` for non-mounted filesystems
|
||||
on Unix.
|
Loading…
Reference in New Issue