Skip to content

Commit

Permalink
fix: extract USGS tarfiles (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
anesson-cs committed Aug 25, 2023
1 parent 62977ba commit 9062756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eodag/plugins/download/base.py
Expand Up @@ -373,7 +373,7 @@ def _finalize(self, fs_path, progress_callback=None, **kwargs):
shutil.move(extraction_dir, outputs_dir)

elif fs_path.endswith(".tar.gz"):
with tarfile.open(fs_path, "r:gz") as zfile:
with tarfile.open(fs_path, "r") as zfile:
progress_callback.reset(total=1)
zfile.extractall(path=extraction_dir)
progress_callback(1)
Expand Down

0 comments on commit 9062756

Please sign in to comment.