general_fetch_file

grizli.utils.general_fetch_file(url, path='./', makedirs=True, skip_existing=True, cache=True, verbose=True, **kwargs)[source]

General utility for downloading either from s3:// or https://

Parameters
urlstr

URL of a file to download

pathstr

Path of downloaded file.

skip_existing:

Don’t re-download if the local file is found in path

Returns
local_filestr

Path to the local file

statusint

Download status: 0 if file not found, 1 if local_file found, 2 if downloaded successfully.