Skip to content

Commit b50ae50

Browse files
committed
mkdir should be source, not target
1 parent f051198 commit b50ae50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/docker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ def append_volume(runtime, source, target, writable=False):
237237
"--mount={}".format(mount_arg)
238238
)
239239
# Unlike "--volume", "--mount" will fail if the volume doesn't already exist.
240-
if not os.path.isdir(target):
241-
os.mkdir(target)
240+
if not os.path.isdir(source):
241+
os.mkdir(source)
242242

243243
def add_file_or_directory_volume(
244244
self, runtime: List[str], volume: MapperEnt, host_outdir_tgt: Optional[str]

0 commit comments

Comments
 (0)