backend: Add Delete() to restic.Backend interface
This commit is contained in:
parent
3736f33ebf
commit
0e722efb09
4 changed files with 40 additions and 1 deletions
|
@ -499,3 +499,8 @@ func (r *SFTP) Close() error {
|
|||
<-r.result
|
||||
return nil
|
||||
}
|
||||
|
||||
// Delete removes all data in the backend.
|
||||
func (r *SFTP) Delete(context.Context) error {
|
||||
return r.c.RemoveDirectory(r.p)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue