Skip to content

Commit

Permalink
Fix removal of prefix when using S3 download
Browse files Browse the repository at this point in the history
  • Loading branch information
radosuav committed Jan 15, 2025
1 parent 99e55c2 commit bd84e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion creodias_finder/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def download_from_s3(source_path, outdir, s3_client=None):
),
)
storage_client = S3Storage(s3_client)
source_path = source_path.lstrip("/eodata/")
source_path = source_path.removeprefix("/eodata/")
product_folder = source_path.split("/")[-1]
storage_client.download_product(
"DIAS", source_path, os.path.join(outdir, product_folder)
Expand Down

0 comments on commit bd84e21

Please sign in to comment.