Merge branch '11209-unmount-subtype'
[arvados.git] / sdk / cwl / arvados_cwl / fsaccess.py
index 70aa69f669be6d6e8c0a7210ea3da0808af3e6bc..3a3d16073833a6367876b5833b54cbb8f35584e7 100644 (file)
@@ -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)