diff --git a/datahugger/base.py b/datahugger/base.py index 57241a5..8c2c469 100644 --- a/datahugger/base.py +++ b/datahugger/base.py @@ -339,7 +339,11 @@ def _get( output_folder: Union[Path, str], **kwargs, ): - if len(self.files) == 1 and self.files[0]["link"].endswith(".zip"): + if ( + len(self.files) == 1 + and self.files[0]["link"].endswith(".zip") + and self.unzip + ): self._unpack_single_folder(self.files[0]["link"], output_folder) return diff --git a/docs/options.md b/docs/options.md index 71302eb..64f4c7b 100644 --- a/docs/options.md +++ b/docs/options.md @@ -36,7 +36,7 @@ Disable auto unzip function ``` python - datahugger.get("10.5061/dryad.x3ffbg7m8", "data", auto_unzip=False) + datahugger.get("10.5061/dryad.x3ffbg7m8", "data", unzip=False) ```