Skip to content
Open
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,10 @@ Reading directories
PosixPath('setup.py'),
PosixPath('test_pathlib.py')]

.. note::
The paths are returned in no particular order.
If you need a specific order, sort the results.

.. seealso::
:ref:`pathlib-pattern-language` documentation.

Expand Down Expand Up @@ -1362,6 +1366,10 @@ Reading directories

.. method:: Path.rglob(pattern, *, case_sensitive=None, recurse_symlinks=False)

.. note::
The paths are returned in no particular order.
If you need a specific order, sort the results.

Glob the given relative *pattern* recursively. This is like calling
:func:`Path.glob` with "``**/``" added in front of the *pattern*.

Expand Down
Loading