ocssw
V2022
|
Public Member Functions | |
def | __init__ (self, timeout=5, max_tries=5, verbose=0, clobber=False) |
def | download_file (self, url, filepath) |
def | get_links (self, url, regex='') |
def | download_allfiles (self, url, dirpath, regex='', check_times=False, clobber=False, dry_run=False) |
Public Attributes | |
timeout | |
max_tries | |
verbose | |
clobber | |
status | |
Detailed Description
Definition at line 134 of file JsonUtils.py.
Constructor & Destructor Documentation
◆ __init__()
def __init__ | ( | self, | |
timeout = 5 , |
|||
max_tries = 5 , |
|||
verbose = 0 , |
|||
clobber = False |
|||
) |
Definition at line 136 of file JsonUtils.py.
Member Function Documentation
◆ download_allfiles()
def download_allfiles | ( | self, | |
url, | |||
dirpath, | |||
regex = '' , |
|||
check_times = False , |
|||
clobber = False , |
|||
dry_run = False |
|||
) |
Downloads all available files from a remote url into a local dirpath. Default is to download only if local file doesn't match remote size; set clobber=True to always download.
Definition at line 185 of file JsonUtils.py.
◆ download_file()
def download_file | ( | self, | |
url, | |||
filepath | |||
) |
Definition at line 143 of file JsonUtils.py.
◆ get_links()
def get_links | ( | self, | |
url, | |||
regex = '' |
|||
) |
Returns a unique set of links from a given url. Optionally specify regex to filter for acceptable files; default is to list only links starting with url.
Definition at line 157 of file JsonUtils.py.
Member Data Documentation
◆ clobber
clobber |
Definition at line 140 of file JsonUtils.py.
◆ max_tries
max_tries |
Definition at line 138 of file JsonUtils.py.
◆ status
status |
Definition at line 141 of file JsonUtils.py.
◆ timeout
timeout |
Definition at line 137 of file JsonUtils.py.
◆ verbose
verbose |
Definition at line 139 of file JsonUtils.py.
The documentation for this class was generated from the following file:
- /gfs-oceanweb/web/ocssw/ocssw_src/src/scripts/seadasutils/JsonUtils.py