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
|
@ -275,7 +275,7 @@ func (b *Local) List(ctx context.Context, t restic.FileType) <-chan string {
|
|||
}
|
||||
|
||||
// Delete removes the repository and all files.
|
||||
func (b *Local) Delete() error {
|
||||
func (b *Local) Delete(ctx context.Context) error {
|
||||
debug.Log("Delete()")
|
||||
return fs.RemoveAll(b.Path)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue