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

Function download_files

tools/python/maps_generator/utils/file.py:176–181  ·  view source on GitHub ↗
(url_to_path: Dict[AnyStr, AnyStr], download_if_exists: bool = True)

Source from the content-addressed store, hash-verified

174
175
176def download_files(url_to_path: Dict[AnyStr, AnyStr], download_if_exists: bool = True):
177 with ThreadPool() as pool:
178 pool.starmap(
179 partial(download_file, download_if_exists=download_if_exists),
180 url_to_path.items(),
181 )
182
183
184def is_exists_file_and_md5(name: AnyStr) -> bool:

Callers 3

applyMethod · 0.90
download_under_lockFunction · 0.90

Calls 1

ThreadPoolClass · 0.90

Tested by

no test coverage detected