Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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)