Skip to content

Commit

Permalink
[3.12] pythongh-83006: Document behavior of shutil.disk_usage for n…
Browse files Browse the repository at this point in the history
…on-mounted filesystems on Unix (pythonGH-107031) (python#107047)

(cherry picked from commit 6e5f223)

Co-authored-by: Matthieu Caneill <matthieucan@users.noreply.github.com>
  • Loading branch information
miss-islington and matthieucan authored Jul 22, 2023
1 parent 3889d39 commit 0fff068
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Doc/library/shutil.rst
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Document behavior of :func:`shutil.disk_usage` for non-mounted filesystems
on Unix.

0 comments on commit 0fff068

Please sign in to comment.