summaryrefslogtreecommitdiff
path: root/src/leap/soledad/client
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-11-09 04:10:05 -0300
committerVictor Shyba <victor1984@riseup.net>2017-11-13 18:17:15 -0300
commit914579325d242e2643a964bbf1b271435b5c66cc (patch)
tree87282e49e2fe934b847b590fefa0dbad1f54edc7 /src/leap/soledad/client
parent91d7cd4961c0e158d1dc57e16d243d2394e04d40 (diff)
[feature] list deleted files from server
-- Related: #8961
Diffstat (limited to 'src/leap/soledad/client')
-rw-r--r--src/leap/soledad/client/_db/blobs/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/soledad/client/_db/blobs/__init__.py b/src/leap/soledad/client/_db/blobs/__init__.py
index 45fae024..a5b7d6e3 100644
--- a/src/leap/soledad/client/_db/blobs/__init__.py
+++ b/src/leap/soledad/client/_db/blobs/__init__.py
@@ -159,7 +159,7 @@ class BlobManager(BlobsSynchronizer):
return self.remote_list(namespace=namespace, only_count=True)
@defer.inlineCallbacks
- def remote_list(self, namespace='', order_by=None,
+ def remote_list(self, namespace='', order_by=None, deleted=False,
filter_flag=False, only_count=False):
"""
List blobs from server, with filtering and ordering capabilities.
@@ -172,6 +172,9 @@ class BlobManager(BlobsSynchronizer):
date or +date - Ascending order (older first)
-date - Descending order (newer first)
:type order_by: str
+ :param deleted:
+ Optional paramter to return only deleted blobs.
+ :type only_count: bool
:param filter_flag:
Optional parameter to filter listing to results containing the
specified tag.
@@ -188,6 +191,8 @@ class BlobManager(BlobsSynchronizer):
params = {'namespace': namespace} if namespace else {}
if order_by:
params['order_by'] = order_by
+ if deleted:
+ params['deleted'] = deleted
if filter_flag:
params['filter_flag'] = filter_flag
if only_count: