Skip to content

Commit

Permalink
Do a copy when not bypassing filestore and when caching is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
stxue1 committed Dec 18, 2024
1 parent 7d52d00 commit 121afa1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/toil/cwl/cwltoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -4364,7 +4364,12 @@ def main(args: Optional[list[str]] = None, stdout: TextIO = sys.stdout) -> int:
if not options.bypass_file_store:
# If we're using the file store we need to start moving output
# files now.
runtime_context.move_outputs = "move"
# But if caching is enabled we have to leave files in the cache directory,
# so do a copy if so.
if runtime_context.cachedir is not None:
runtime_context.move_outputs = "copy"
else:
runtime_context.move_outputs = "move"

# We instantiate an early builder object here to populate indirect
# secondaryFile references using cwltool's library because we need
Expand Down

0 comments on commit 121afa1

Please sign in to comment.