[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:
Miss Islington (bot) 2023-07-22 11:25:15 -07:00 committed by GitHub
parent e5d2a19ac5
commit 2895dbd0f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,2 @@
Document behavior of :func:`shutil.disk_usage` for non-mounted filesystems
on Unix.