(url, destination, update_callback=None, is_ext_subpath=True, session=None)
| 216 | |
| 217 | |
| 218 | async 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 | |
| 225 | def wait_for_async(async_fn, loop=None): |
nothing calls this directly
no test coverage detected