MCPcopy Index your code
hub / github.com/RustPython/RustPython / rglob

Method rglob

Lib/pathlib/__init__.py:873–880  ·  view source on GitHub ↗

Recursively yield all existing files (of any kind, including directories) matching the given relative pattern, anywhere in this subtree.

(self, pattern, *, case_sensitive=None, recurse_symlinks=False)

Source from the content-addressed store, hash-verified

871 return paths
872
873 def rglob(self, pattern, *, case_sensitive=None, recurse_symlinks=False):
874 """Recursively yield all existing files (of any kind, including
875 directories) matching the given relative pattern, anywhere in
876 this subtree.
877 """
878 sys.audit("pathlib.Path.rglob", self, pattern)
879 pattern = self.parser.join('**', pattern)
880 return self.glob(pattern, case_sensitive=case_sensitive, recurse_symlinks=recurse_symlinks)
881
882 def walk(self, top_down=True, on_error=None, follow_symlinks=False):
883 """Walk the directory tree from this directory, similar to os.walk()."""

Callers 7

create_archiveFunction · 0.95
test_glob_recursiveMethod · 0.95
test_glob_subdirsMethod · 0.95
find_eq.pyFile · 0.45
get_untracked_filesFunction · 0.45
compare_dir_contentsFunction · 0.45
_count_path_diffFunction · 0.45

Calls 2

globMethod · 0.95
joinMethod · 0.45

Tested by 2

test_glob_recursiveMethod · 0.76
test_glob_subdirsMethod · 0.76