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.
1 parent a700732 commit 753a0d3Copy full SHA for 753a0d3
1 file changed
Doc/library/pathlib.rst
@@ -575,6 +575,16 @@ Pure paths provide the following methods and properties:
575
>>> PurePath('/a/b/c.py').full_match('**/*.py')
576
True
577
578
+ The recursive wildcard "``**``" matches complete path segments. Therefore
579
+ a pattern such as "``/a/**``" matches "``/a/b``", but not "``/a``":
580
+ the slash before "``**``" must also be present in the path, and path
581
+ objects do not preserve a trailing slash::
582
+
583
+ >>> PurePath('/a/b').full_match('/a/**')
584
+ True
585
+ >>> PurePath('/a').full_match('/a/**')
586
+ False
587
588
.. seealso::
589
:ref:`pathlib-pattern-language` documentation.
590
0 commit comments