From c72b0e44fea2ba130310692b254d501aaec5fbdd Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 8 Nov 2023 10:28:14 +0100 Subject: [PATCH] Fix directory unpacking --- lib/galaxy/tools/data_fetch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/tools/data_fetch.py b/lib/galaxy/tools/data_fetch.py index 22441af08a6e..61388500ab29 100644 --- a/lib/galaxy/tools/data_fetch.py +++ b/lib/galaxy/tools/data_fetch.py @@ -359,8 +359,8 @@ def walk_extra_files(items, prefix=""): assert path datatype.groom_dataset_content(path) - if datatype.file_ext == "directory": - CompressedFile.extract(path, extra_files_path) + if ext == "directory" and not deferred and path: + CompressedFile(path).extract(extra_files_path) staged_extra_files = extra_files_path if len(transform) > 0: