Skip to content

Commit

Permalink
Create empty file if datatype is auto_primary_file
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed May 21, 2024
1 parent fa5e852 commit 2f83ef3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/galaxy/metadata/set_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,9 @@ def set_meta(new_dataset_instance, file_dict):
dataset.dataset.created_from_basename = created_from_basename
elif os.path.exists(dataset_path_to_extra_path(external_filename)):
# Only output extra files dir, but no primary output file, that's fine
if dataset.datatype.composite_type == "auto_primary_file":
with open(external_filename, "wb"):
pass
pass
else:
raise Exception(f"Output file '{external_filename}' not found")
Expand Down

0 comments on commit 2f83ef3

Please sign in to comment.