MCPcopy Create free account
hub / github.com/culvertsoft/mgen / findFilesExt

Function findFilesExt

buildutil.py:78–86  ·  view source on GitHub ↗
(path, names, exclDirs = [])

Source from the content-addressed store, hash-verified

76 return out
77
78def findFilesExt(path, names, exclDirs = []):
79 out = []
80 for root, dirs, files in os.walk(path, topdown=True):
81 dirs[:] = [d for d in dirs if d not in exclDirs]
82 for file in files:
83 for name in names:
84 if file.endswith(name):
85 out.append(os.path.join(root, file))
86 return out
87
88def rmFolders(path, matching):
89 for folder in findDirs(path, matching):

Callers 2

mkCalcDepFileTaskFunction · 0.85
prepareNormalTestSourcesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected