Skip to content

Commit 6d29984

Browse files
bogdang989mr-c
authored andcommitted
Ensure subdirectory exists for staging (#1044)
1 parent d7481d0 commit 6d29984

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cwltool/docker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ def add_writable_file_volume(self,
229229
if host_outdir_tgt:
230230
# shortcut, just copy to the output directory
231231
# which is already going to be mounted
232+
if not os.path.exists(os.path.dirname(host_outdir_tgt)):
233+
os.makedirs(os.path.dirname(host_outdir_tgt))
232234
shutil.copy(volume.resolved, host_outdir_tgt)
233235
else:
234236
tmp_dir, tmp_prefix = os.path.split(tmpdir_prefix)

0 commit comments

Comments
 (0)