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)
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)
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)
def exists(self, fn): collection, rest = self.get_collection(fn) if collection: return collection.exists(rest) else: return os.path.exists(self._abs(fn))
def exists(self, fn): collection, rest = self.get_collection(fn) if collection: return collection.exists(rest) else: return super(CollectionFsAccess, self).exists(fn)