Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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))
Пример #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))
Пример #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)