core.network.download

core.network.download.download_url(url: str, dirname: Path, wget_opts: str | None = None, check_function: Callable | None = None, verbose: bool = True, if_exists: Literal['skip', 'overwrite', 'backup', 'error'] = 'skip', **kwargs: Any) Path[source]

Download url to dirname

Uses wget when wget_opts is provided, otherwise uses urllib.request Options wget_opts are added to wget command Uses a filegen wrapper Other kwargs are passed to filegen (lock_timeout, tmpdir, if_exists)

Returns the path to the downloaded file