MCPcopy
hub / github.com/bugy/script-server / search_glob

Function search_glob

src/utils/file_utils.py:216–223  ·  view source on GitHub ↗
(path_pattern, recursive=None)

Source from the content-addressed store, hash-verified

214
215
216def search_glob(path_pattern, recursive=None):
217 if sys.version_info >= (3, 5):
218 return glob.glob(path_pattern, recursive=recursive)
219 else:
220 if not recursive:
221 return glob.glob(path_pattern)
222 else:
223 return _pre_3_5_recursive_glob(path_pattern)
224
225
226def _pre_3_5_recursive_glob(path_pattern, parent_path=None):

Callers

nothing calls this directly

Calls 1

_pre_3_5_recursive_globFunction · 0.85

Tested by

no test coverage detected