From 26a65d100f91883027c17c219d018461968eda65 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Thu, 23 Mar 2017 20:33:20 -0300 Subject: [feature] add blobs listing --- client/src/leap/soledad/client/_blobs.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/src') diff --git a/client/src/leap/soledad/client/_blobs.py b/client/src/leap/soledad/client/_blobs.py index 7ecd4a4d..f9f1515b 100644 --- a/client/src/leap/soledad/client/_blobs.py +++ b/client/src/leap/soledad/client/_blobs.py @@ -157,6 +157,12 @@ class BlobManager(object): if hasattr(self, 'local') and self.local: return self.local.close() + @defer.inlineCallbacks + def list(self): + uri = urljoin(self.remote, self.user + '/') + data = yield self._client.get(uri) + defer.returnValue((yield data.json())) + @defer.inlineCallbacks def put(self, doc, size): fd = doc.blob_fd -- cgit v1.2.3