MCPcopy Create free account
hub / github.com/comaps/comaps / get_files_from_dir

Function get_files_from_dir

tools/python/data/base.py:19–25  ·  view source on GitHub ↗
(abs_root_path, b, data_files)

Source from the content-addressed store, hash-verified

17
18
19def get_files_from_dir(abs_root_path, b, data_files):
20 for root, dirs, files in os.walk(abs_root_path):
21 data_files[b].extend(os.path.join(root, f) for f in files)
22 for d in dirs:
23 get_files_from_dir(
24 os.path.join(abs_root_path, d), os.path.join(b, d), data_files
25 )
26
27
28def get_data_files(relative_data_paths):

Callers 1

get_data_filesFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected