Skip to content

Commit 7ad7557

Browse files
committed
correction to file list output when files are not re-downloaded
1 parent deb87a3 commit 7ad7557

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ECCO-ACCESS/ecco_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def download_file(url: str, output_file: str, force: bool=False):
700700
# if the file has already been downloaded, skip
701701
if isfile(output_file) and force is False:
702702
print(output_filename + ' already exists, and force=False, not re-downloading')
703-
return 0
703+
return output_file,0
704704

705705
with requests.get(url) as r:
706706
if not r.status_code // 100 == 2:

ECCO-ACCESS/ecco_s3_retrieve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def download_file(s3, url, output_dir, force):
227227
# if the file has already been downloaded, skip
228228
if isfile(target_file) and force is False:
229229
print(f'\n{basename(url)} already exists, and force=False, not re-downloading')
230-
return target_file,0
230+
return target_file
231231

232232
# download file to local (output) file directory
233233
s3.get_file(url, target_file)

0 commit comments

Comments
 (0)