Currently, DownloadObject doesn't seem good enough and safe to me what it's doing. I propose the following changes:
allow download for verify=False if necessary, but set True as default
Just cleanup entire directory in download if it didn't exist before. Otherwise, just the partial downloaded file. Currently, it could remove directories which have other content if the download gets interrupted.
Add progress-bar option to download. This stackoverflow-post may be helpful.
Extend get_object with the mentioned options.
Set verify=False in is_url_available and ignore InsecureRequestWarning from urllib3 (just in this function)
Currently,
DownloadObject
doesn't seem good enough and safe to me what it's doing. I propose the following changes:download
forverify=False
if necessary, but set True as defaultdownload
if it didn't exist before. Otherwise, just the partial downloaded file. Currently, it could remove directories which have other content if the download gets interrupted.download
. This stackoverflow-post may be helpful.get_object
with the mentioned options.verify=False
inis_url_available
and ignoreInsecureRequestWarning
fromurllib3
(just in this function)