Skip to content

Commit 54a50c3

Browse files
samuelltetron
authored andcommitted
Enable concatenating input paths with suffix strings
1 parent c637cd7 commit 54a50c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cwltool/draft2tool.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,9 @@ def collect_output(self, schema, builder, outdir):
338338
globpatterns.extend(aslist(gb))
339339

340340
for gb in globpatterns:
341-
if gb.startswith("/"):
341+
if gb.startswith(outdir):
342+
gb = gb[len(outdir)+1:]
343+
elif gb.startswith("/"):
342344
raise WorkflowException("glob patterns must not start with '/'")
343345
try:
344346
r.extend([{"path": g, "class": "File", "hostfs": True}

0 commit comments

Comments
 (0)