MCPcopy Index your code
hub / github.com/python/cpython / rglob

Method rglob

Lib/pathlib/__init__.py:1071–1078  ·  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

1069 return paths
1070
1071 def rglob(self, pattern, *, case_sensitive=None, recurse_symlinks=False):
1072 """Recursively yield all existing files (of any kind, including
1073 directories) matching the given relative pattern, anywhere in
1074 this subtree.
1075 """
1076 sys.audit("pathlib.Path.rglob", self, pattern)
1077 pattern = self.parser.join('**', pattern)
1078 return self.glob(pattern, case_sensitive=case_sensitive, recurse_symlinks=recurse_symlinks)
1079
1080 def walk(self, top_down=True, on_error=None, follow_symlinks=False):
1081 """Walk the directory tree from this directory, similar to os.walk()."""

Callers 4

create_archiveFunction · 0.95
test_glob_recursiveMethod · 0.95
test_glob_subdirsMethod · 0.95
fail_if_regressionFunction · 0.45

Calls 2

globMethod · 0.95
joinMethod · 0.45

Tested by 2

test_glob_recursiveMethod · 0.76
test_glob_subdirsMethod · 0.76