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

Function rglob

PC/layout/support/filesets.py:95–102  ·  view source on GitHub ↗
(root, patterns, condition=None)

Source from the content-addressed store, hash-verified

93
94
95def rglob(root, patterns, condition=None):
96 if not os.path.isdir(root):
97 return
98 if isinstance(patterns, tuple):
99 for p in patterns:
100 yield from _rglob(root, p, condition or _return_true)
101 else:
102 yield from _rglob(root, patterns, condition or _return_true)

Callers 4

get_lib_layoutFunction · 0.85
get_tcltk_libFunction · 0.85
get_layoutFunction · 0.85
get_pip_layoutFunction · 0.85

Calls 2

_rglobFunction · 0.85
isdirMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…