Exemple #1
0
 def exists(self, fn):
     collection, rest = self.get_collection(fn)
     if collection:
         if rest:
             return collection.exists(rest)
         else:
             return True
     else:
         return super(CollectionFsAccess, self).exists(fn)
Exemple #2
0
 def exists(self, fn):
     collection, rest = self.get_collection(fn)
     if collection is not None:
         if rest:
             return collection.exists(rest)
         else:
             return True
     else:
         return super(CollectionFsAccess, self).exists(fn)
Exemple #3
0
 def exists(self, fn):
     try:
         collection, rest = self.get_collection(fn)
     except HttpError as err:
         if err.resp.status == 404:
             return False
         else:
             raise
     if collection is not None:
         if rest:
             return collection.exists(rest)
         else:
             return True
     else:
         return super(CollectionFsAccess, self).exists(fn)
Exemple #4
0
 def exists(self, fn):
     try:
         collection, rest = self.get_collection(fn)
     except HttpError as err:
         if err.resp.status == 404:
             return False
         else:
             raise
     if collection is not None:
         if rest:
             return collection.exists(rest)
         else:
             return True
     else:
         return super(CollectionFsAccess, self).exists(fn)
Exemple #5
0
 def exists(self, fn):
     collection, rest = self.get_collection(fn)
     if collection:
         return collection.exists(rest)
     else:
         return os.path.exists(self._abs(fn))
Exemple #6
0
 def exists(self, fn):
     collection, rest = self.get_collection(fn)
     if collection:
         return collection.exists(rest)
     else:
         return os.path.exists(self._abs(fn))
Exemple #7
0
 def exists(self, fn):
     collection, rest = self.get_collection(fn)
     if collection:
         return collection.exists(rest)
     else:
         return super(CollectionFsAccess, self).exists(fn)