Utils for file downloads.
missing_files
missing_files(files, rootdir='')
Check for missing files.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
files
|
list
|
The files (including path) to check. |
required |
rootdir
|
string)
|
A root path to add before the paths in the files list. |
''
|
Returns:
| Type | Description |
|---|---|
|
A list of files (from the files argument) that does not exist. |
|
|
Will return 'None' if all files exists. |
download_file_with_status
download_file_with_status(url_file, filepath, session=None)
Download one file with a progress bar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url_file
|
string)
|
The URL for downloading the file. |
required |
filepath
|
string)
|
The file path for storing the file |
required |
session
|
The request session to use, if one exist. |
None
|