X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d4bb1f8a3c68288f45d2c1fa618c333825fcc8d0..8d61948fecccfc60db2f18ba4daf7c01ddf3d3c8:/sdk/cwl/arvados_cwl/pathmapper.py diff --git a/sdk/cwl/arvados_cwl/pathmapper.py b/sdk/cwl/arvados_cwl/pathmapper.py index e17264bcdd..40a64ffd20 100644 --- a/sdk/cwl/arvados_cwl/pathmapper.py +++ b/sdk/cwl/arvados_cwl/pathmapper.py @@ -58,6 +58,8 @@ class ArvPathMapper(PathMapper): def addentry(self, obj, c, path, subdirs): if obj["location"] in self._pathmap: src, srcpath = self.arvrunner.fs_access.get_collection(self._pathmap[obj["location"]].resolved) + if srcpath == "": + srcpath = "." c.copy(srcpath, path + "/" + obj["basename"], source_collection=src, overwrite=True) for l in obj.get("secondaryFiles", []): self.addentry(l, c, path, subdirs)