MCPcopy Create free account
hub / github.com/ActiveState/code / all_filepaths

Function all_filepaths

recipes/Python/576537_Deep_rename/recipe-576537.py:51–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 return (pth for pth in all_filepaths() if pth.find('/.') == -1 and any(pth.endswith(ending) for ending in FILENAME_ENDINGS))
50
51def all_filepaths():
52 for path, dirlist, filelist in os.walk(TOP):
53 for filename in filelist:
54 yield os.path.join(path, filename)
55
56def replaced_line(pat,sub,original_line):
57 if DRY_RUN: return original_line

Callers 3

gen_filepathsFunction · 0.85
check_bakfilesFunction · 0.85
check_swapfilesFunction · 0.85

Calls 2

walkMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected