We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
glob
pathlib
1 parent e28477f commit 72eea51Copy full SHA for 72eea51
Doc/library/pathlib.rst
@@ -1682,6 +1682,10 @@ The patterns accepted and results generated by :meth:`Path.glob` and
1682
5. The values returned from pathlib's ``path.glob()`` and ``path.rglob()``
1683
include the *path* as a prefix, unlike the results of
1684
``glob.glob(root_dir=path)``.
1685
+6. The values returned from pathlib's ``path.glob()`` and ``path.rglob()``
1686
+ may include *path* itself, for example when globbing "``**``", whereas the
1687
+ results of ``glob.glob(root_dir=path)`` never include an empty string that
1688
+ would correspond to *path*.
1689
1690
1691
Comparison to the :mod:`os` and :mod:`os.path` modules
0 commit comments