X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4cd89bd1767bece226c412ae7c9ea37669e8706b..2f52a6e7d9945f51d33b047466c4d927d494bb32:/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:"):