PyDocs

Nav

File and Directory Access

PurePath.full_match

pathlib

method of PurePath · Added in 3.13 (source)
  • PurePath.full_match(pattern, *, case_sensitive=None)
Return True if this path matches the given glob-style pattern. The
pattern is matched against the entire path.
1 Example
>>> PurePath('a/b.py').full_match('a/*.py')
True
>>> PurePath('a/b.py').full_match('*.py')
False
>>> PurePath('/a/b/c.py').full_match('**/*.py')
True
>>> PurePath('/a/b/c.py').full_match('/a/**')
True
from the Python docs
See Also
No see-alsos for pathlib/PurePath.full_match
0 Notes
No notes for PurePath.full_match