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

Function gen_filepaths

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

Source from the content-addressed store, hash-verified

46 return ch
47
48def gen_filepaths():
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):

Callers 2

deeprename_filesFunction · 0.85
exec_cmdFunction · 0.85

Calls 4

all_filepathsFunction · 0.85
endswithMethod · 0.80
anyFunction · 0.50
findMethod · 0.45

Tested by

no test coverage detected