self.path = url
self.prefix = self.path.rstrip("/")
- def _get_path(self, type, name):
- return os.path.join(self.prefix, type, name)
-
def list(self, subdir):
try:
return os.listdir(os.path.join(self.prefix, subdir))
stat = os.stat(os.path.join(self.prefix, path))
return {'size': stat.st_size}
except OSError:
- raise cumulus.store.NotFoundError, path
+ raise cumulus.store.NotFoundError(path)
Store = FileStore