Skip to content

Commit 10430ef

Browse files
committed
--leave-tmpdir includes the input staging directories
1 parent fb5774b commit 10430ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cwltool/job.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,11 @@ def stderr_stdout_log_path(
460460
with runtimeContext.workflow_eval_lock:
461461
self.output_callback(outputs, processStatus)
462462

463-
if self.stagedir is not None and os.path.exists(self.stagedir):
463+
if (
464+
runtimeContext.rm_tmpdir
465+
and self.stagedir is not None
466+
and os.path.exists(self.stagedir)
467+
):
464468
_logger.debug(
465469
"[job %s] Removing input staging directory %s",
466470
self.name,

0 commit comments

Comments
 (0)