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

Method select_recursive

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

Source from the content-addressed store, hash-verified

472 select_next = self.selector(parts)
473
474 def select_recursive(path, exists=False):
475 match_pos = len(str(path))
476 if match is None or match(str(path), match_pos):
477 yield from select_next(path, exists)
478 stack = [path]
479 while stack:
480 yield from select_recursive_step(stack, match_pos)
481
482 def select_recursive_step(stack, match_pos):
483 path = stack.pop()

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
strFunction · 0.85
matchFunction · 0.85

Tested by

no test coverage detected