MCPcopy
hub / github.com/pythongosssss/ComfyUI-Custom-Scripts / download_to_file

Function download_to_file

pysssss.py:218–222  ·  view source on GitHub ↗
(url, destination, update_callback=None, is_ext_subpath=True, session=None)

Source from the content-addressed store, hash-verified

216
217
218async def download_to_file(url, destination, update_callback=None, is_ext_subpath=True, session=None):
219 if is_ext_subpath:
220 destination = get_ext_dir(destination)
221 with open(destination, mode='wb') as f:
222 download(url, f, update_callback, session)
223
224
225def wait_for_async(async_fn, loop=None):

Callers

nothing calls this directly

Calls 2

get_ext_dirFunction · 0.85
downloadFunction · 0.85

Tested by

no test coverage detected