X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8ed521f7fd1e48e1e415125745ed8c6627a62c91..9dae3e6dde2993bc44e90539141b442c899cf114:/sdk/cwl/arvados_cwl/fsaccess.py diff --git a/sdk/cwl/arvados_cwl/fsaccess.py b/sdk/cwl/arvados_cwl/fsaccess.py index 2191dcb8df..3a3d160738 100644 --- a/sdk/cwl/arvados_cwl/fsaccess.py +++ b/sdk/cwl/arvados_cwl/fsaccess.py @@ -80,7 +80,10 @@ class CollectionFsAccess(cwltool.stdfsaccess.StdFsAccess): def exists(self, fn): collection, rest = self.get_collection(fn) if collection: - return collection.exists(rest) + if rest: + return collection.exists(rest) + else: + return True else: return super(CollectionFsAccess, self).exists(fn) @@ -152,6 +155,8 @@ class CollectionFetcher(DefaultFetcher): def check_exists(self, url): try: + if url.startswith("http://arvados.org/cwl"): + return True if url.startswith("keep:"): return self.fsaccess.exists(url) if url.startswith("arvwf:"):