MCPcopy Index your code
hub / github.com/saltstack/salt / build_file_list

Function build_file_list

tools/precommit/docs.py:144–150  ·  view source on GitHub ↗
(files, extension)

Source from the content-addressed store, hash-verified

142
143
144def build_file_list(files, extension):
145 if not files:
146 _files = tools.utils.REPO_ROOT.rglob(f"*{extension}")
147 else:
148 _files = [fpath.resolve() for fpath in files if fpath.suffix == extension]
149 _files = [path.relative_to(tools.utils.REPO_ROOT) for path in _files]
150 return _files
151
152
153def build_python_module_paths(files):

Callers 2

build_docs_pathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected