Skip to content

Commit 445f6b3

Browse files
authored
Merge pull request #1265 from common-workflow-language/toil_aid
small tweaks to support toil
2 parents c7c3799 + 3637bcc commit 445f6b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cwltool/docker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def append_volume(runtime, source, target, writable=False):
236236
runtime.append("--mount={}".format(mount_arg))
237237
# Unlike "--volume", "--mount" will fail if the volume doesn't already exist.
238238
if not os.path.exists(source):
239-
os.mkdir(source)
239+
os.makedirs(source)
240240

241241
def add_file_or_directory_volume(
242242
self, runtime: List[str], volume: MapperEnt, host_outdir_tgt: Optional[str]

cwltool/pathmapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ def visit(self, obj, stagedir, basedir, copy=False, staged=False):
326326
elif obj["class"] == "File":
327327
path = obj["location"]
328328
ab = abspath(path, basedir)
329-
if "contents" in obj and obj["location"].startswith("_:"):
330-
self._pathmap[obj["location"]] = MapperEnt(
329+
if "contents" in obj and path.startswith("_:"):
330+
self._pathmap[path] = MapperEnt(
331331
obj["contents"],
332332
tgt,
333333
"CreateWritableFile" if copy else "CreateFile",

0 commit comments

Comments
 (0)