We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a5be47 commit fb29e35Copy full SHA for fb29e35
cwltool/builder.py
@@ -422,12 +422,14 @@ def _capture_files(f: CWLObjectType) -> CWLObjectType:
422
found = False
423
424
if isinstance(sfname, str):
425
- sf_location = (
426
- cast(str, datum["location"])[
427
- 0 : cast(str, datum["location"]).rindex("/") + 1
428
- ]
429
- + sfname
430
- )
+ d_location = cast(str, datum["location"])
+ if "/" in d_location:
+ sf_location = (
+ d_location[0 : d_location.rindex("/") + 1]
+ + sfname
+ )
431
+ else:
432
+ sf_location = d_location + sfname
433
sfbasename = sfname
434
elif isinstance(sfname, MutableMapping):
435
sf_location = sfname["location"]
0 commit comments