Skip to content

Commit ffba66a

Browse files
authored
Merge pull request #1526 from Smeds/patch-3
create provided output_directory if it doesn't exist
2 parents 8b68fe7 + 1d22df5 commit ffba66a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

planemo/galaxy/activity.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,10 @@ def collect_outputs(
459459
# TODO: rather than creating a directory just use
460460
# Galaxy paths if they are available in this
461461
# configuration.
462-
output_directory = output_directory or tempfile.mkdtemp()
462+
if output_directory:
463+
os.makedirs(output_directory, exist_ok=True)
464+
else:
465+
output_directory = tempfile.mkdtemp()
463466

464467
self._ctx.log("collecting outputs to directory %s" % output_directory)
465468

0 commit comments

Comments
 (0)