MCPcopy
hub / github.com/doocs/leetcode / find_all_paths

Function find_all_paths

run_format.py:264–274  ·  view source on GitHub ↗

Find all paths of files with suffixes

()

Source from the content-addressed store, hash-verified

262
263
264def find_all_paths() -> List[str]:
265 """Find all paths of files with suffixes"""
266 paths = []
267 for root, _, files in os.walk(os.getcwd()):
268 for file in files:
269 path = root + "/" + file
270 if "node_modules" in path or "__pycache__" in path or ".git" in path:
271 continue
272 if any(path.endswith(f".{suf}") for suf in suffixes):
273 paths.append(path)
274 return paths
275
276
277def format_inline_code(path: str):

Callers 1

runFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected