summaryrefslogtreecommitdiff
path: root/src/leap/soledad/server
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-11-27 09:44:51 -0300
committerVictor Shyba <victor1984@riseup.net>2017-12-01 01:38:08 -0300
commitd574e734e19d5350992bc1aeb00014c41a444add (patch)
tree6dc965a8467c5d83f057d2ca7d01ab2e5c01fb1d /src/leap/soledad/server
parent5c8109086429211b8f9f1444f1b56a285e49dd6a (diff)
[feature] add implementation for get_blob_size
Diffstat (limited to 'src/leap/soledad/server')
-rw-r--r--src/leap/soledad/server/_blobs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/soledad/server/_blobs.py b/src/leap/soledad/server/_blobs.py
index 5670c562..5f5ae5ac 100644
--- a/src/leap/soledad/server/_blobs.py
+++ b/src/leap/soledad/server/_blobs.py
@@ -144,7 +144,8 @@ class FilesystemBlobsBackend(object):
pass
def get_blob_size(self, user, blob_id, namespace=''):
- raise NotImplementedError
+ blob_path = self._get_path(user, blob_id, namespace)
+ return os.stat(blob_path).st_size
def count(self, user, request, namespace=''):
base_path = self._get_path(user, namespace=namespace)