Skip to content

Commit

Permalink
pythongh-83006: Document behavior of shutil.disk_usage for non-moun…
Browse files Browse the repository at this point in the history
…ted filesystems on Unix (python#107031)
  • Loading branch information
matthieucan authored Jul 22, 2023
1 parent 149748e commit 6e5f223
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 6e5f223

Please sign in to comment.