1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-22 07:43:06 +00:00

repository: store_list: add deleted param

This commit is contained in:
Thomas Waldmann 2024-11-02 11:50:48 +01:00
parent c8bce0329d
commit 088d59d814
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01
2 changed files with 6 additions and 4 deletions

View file

@ -1078,8 +1078,10 @@ def get_manifest(self):
def put_manifest(self, data):
"""actual remoting is done via self.call in the @api decorator"""
@api(since=parse_version("2.0.0b8"))
def store_list(self, name):
@api(
since=parse_version("2.0.0b8"), deleted={"since": parse_version("2.0.0b13"), "previously": False} # TODO -> b14
)
def store_list(self, name, *, deleted=False):
"""actual remoting is done via self.call in the @api decorator"""
@api(since=parse_version("2.0.0b8"))

View file

@ -519,10 +519,10 @@ def put_manifest(self, data):
self._lock_refresh()
return self.store.store("config/manifest", data)
def store_list(self, name):
def store_list(self, name, *, deleted=False):
self._lock_refresh()
try:
return list(self.store.list(name))
return list(self.store.list(name, deleted=deleted))
except StoreObjectNotFound:
return []