X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=python%2Fcumulus%2Fstore%2Ffile.py;h=6d23a588d03d527b02457f769ae6c97bad5b02f0;hb=a5f66616b1ec0c38328ad5131bf1c889ccc43659;hp=83044017ecf497dc6ea06e1fdf6ac354d80dc0da;hpb=c343597dac79f9edc63d95d881625a317fadb1d9;p=cumulus.git diff --git a/python/cumulus/store/file.py b/python/cumulus/store/file.py index 8304401..6d23a58 100644 --- a/python/cumulus/store/file.py +++ b/python/cumulus/store/file.py @@ -29,9 +29,6 @@ class FileStore(cumulus.store.Store): 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)) @@ -59,6 +56,6 @@ class FileStore(cumulus.store.Store): 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