PyDocs

Nav

File and Directory Access

Path.rglob

pathlib

method of Path (source)
  • Path.rglob(pattern, *, case_sensitive=None, recurse_symlinks=False)
Recursively yield all existing files (of any kind, including
directories) matching the given relative pattern, anywhere in
this subtree.
Changed in 3.12, 3.13
  • 3.12: The case_sensitive parameter was added.
  • 3.13: The recurse_symlinks parameter was added.
  • 3.13: The pattern parameter accepts a path-like object.
0 Examples
No examples for pathlib/Path.rglob.
See Also
No see-alsos for pathlib/Path.rglob
0 Notes
No notes for Path.rglob