X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=python%2Fcumulus%2Fstore%2Fs3.py;h=6460fb60b90771be6925b298ce6efa20dafc521e;hb=2ee97034047db53780a52d803b1c577b4c23c303;hp=0453c21cef2a892e15cb2464686315d9b1a34fba;hpb=8bff41ddef78fa851b09d141c93bdf387abc1dee;p=cumulus.git diff --git a/python/cumulus/store/s3.py b/python/cumulus/store/s3.py index 0453c21..6460fb6 100644 --- a/python/cumulus/store/s3.py +++ b/python/cumulus/store/s3.py @@ -36,3 +36,7 @@ class S3Store(cumulus.store.Store): def delete(self, type, name): self.bucket.delete_key("%s/%s/%s" % (self.prefix, type, name)) + + def stat(self, type, name): + k = self.bucket.get_key("%s/%s/%s" % (self.prefix, type, name)) + return {'size': int(k.size)}