summaryrefslogtreecommitdiff
path: root/src/leap/soledad/server
diff options
context:
space:
mode:
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)