MCPcopy Create free account
hub / github.com/Tencent/embedx / _get_file_list

Function _get_file_list

demo/evaluate.py:70–78  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

68
69
70def _get_file_list(path):
71 if os.path.isfile(path):
72 return [path]
73
74 file_list = []
75 for home, _, files in os.walk(path):
76 for file_name in files:
77 file_list.append(os.path.join(home, file_name))
78 return file_list
79
80
81def _load_data_as_dict(path, dtype=float):

Callers 1

_load_data_as_dictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected