Skip to content

Commit 7062317

Browse files
jugmac00barneygale
andauthored
Update Doc/library/pathlib.rst
Co-authored-by: Barney Gale <[email protected]>
1 parent 23b12d4 commit 7062317

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/pathlib.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,9 @@ call fails (for example because the path doesn't exist).
863863
>>> sorted(Path('.').glob('*/*.py'))
864864
[PosixPath('docs/conf.py')]
865865

866-
"``**``" enables recursive globbing::
866+
Pattern segments are the same as for :mod:`fnmatch`, with the addition of "``**``"
867+
which means "this directory and all subdirectories, recursively". In other
868+
words, it enables recursive globbing::
867869

868870
>>> sorted(Path('.').glob('**/*.py'))
869871
[PosixPath('build/lib/pathlib.py'),

0 commit comments

Comments
 (0)