@@ -218,7 +218,7 @@ def download_files(
218
218
pathlib .Path .mkdir (parent_dir , parents = True )
219
219
if max_concurrent_requests :
220
220
run_concurrently (
221
- _original_files_file_download ,
221
+ _download_one_file ,
222
222
[
223
223
(username , endpoint_url , bucket , in_file , out_file )
224
224
for in_file , out_file in zip (
@@ -240,7 +240,7 @@ def download_files(
240
240
desc = "Downloading files" ,
241
241
) as pbar :
242
242
for in_file , out_file in zip (filenames_in , filenames_out ):
243
- _original_files_file_download (
243
+ _download_one_file (
244
244
username , endpoint_url , bucket , in_file , out_file
245
245
)
246
246
pbar .update (1 )
@@ -511,16 +511,13 @@ def _get_file_size_and_last_modified(
511
511
raise e
512
512
513
513
514
- def _original_files_file_download (
514
+ def _download_one_file (
515
515
username ,
516
516
endpoint_url : str ,
517
517
bucket : str ,
518
518
file_in : str ,
519
519
file_out : pathlib .Path ,
520
- ) -> pathlib .Path :
521
- """
522
- Download ONE file and return the path of the result
523
- """
520
+ ) -> None :
524
521
s3_client , s3_resource = get_configured_boto3_session (
525
522
endpoint_url ,
526
523
["GetObject" , "HeadObject" ],
@@ -547,8 +544,6 @@ def _original_files_file_download(
547
544
f"of the file { file_out } is denied."
548
545
)
549
546
550
- return file_out
551
-
552
547
553
548
# /////////////////////////////
554
549
# --- Tools
0 commit comments