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

Method select_recursive

Lib/glob.py:486–493  ·  view source on GitHub ↗
(path, exists=False)

Source from the content-addressed store, hash-verified

484 select_next = self.selector(parts)
485
486 def select_recursive(path, exists=False):
487 path_str = self.stringify_path(path)
488 match_pos = len(path_str)
489 if match is None or match(path_str, match_pos):
490 yield from select_next(path, exists)
491 stack = [path]
492 while stack:
493 yield from select_recursive_step(stack, match_pos)
494
495 def select_recursive_step(stack, match_pos):
496 path = stack.pop()

Callers

nothing calls this directly

Calls 2

stringify_pathMethod · 0.95
matchFunction · 0.85

Tested by

no test coverage detected