コード例 #1
0
ファイル: fsaccess.py プロジェクト: tomclegg/arvados
 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
ファイル: fsaccess.py プロジェクト: wtsi-hgi/arvados
 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
ファイル: __init__.py プロジェクト: xiaojay/arvados
 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
ファイル: arvados-reference.py プロジェクト: pgrosu/funnel
 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)