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:
parent
c8bce0329d
commit
088d59d814
2 changed files with 6 additions and 4 deletions
|
@ -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"))
|
||||
|
|
|
@ -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 []
|
||||
|
||||
|
|
Loading…
Reference in a new issue