Merge branch '11960-trash-events'
[arvados.git] / sdk / cwl / arvados_cwl / fsaccess.py
index 7736cab4d864db192a5cfdff4a9daedd0f2c5a93..93e2819084601d784a973c33ca30bbbdb2d6db49 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
 import fnmatch
 import os
 import errno
@@ -91,7 +95,7 @@ class CollectionFsAccess(cwltool.stdfsaccess.StdFsAccess):
 
     def exists(self, fn):
         collection, rest = self.get_collection(fn)
-        if collection:
+        if collection is not None:
             if rest:
                 return collection.exists(rest)
             else: