projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow a URL to be used in cumulus-util to specify a store location.
[cumulus.git]
/
python
/
cumulus
/
store
/
s3.py
diff --git
a/python/cumulus/store/s3.py
b/python/cumulus/store/s3.py
index
0453c21
..
6460fb6
100644
(file)
--- 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)}