mirror of
https://github.com/restic/restic.git
synced 2025-10-09 07:33:53 +00:00
backend: add IsPermanentError() method to interface
This commit is contained in:
@@ -72,6 +72,10 @@ func (be *Backend) IsNotExist(err error) bool {
|
||||
return be.b.IsNotExist(err)
|
||||
}
|
||||
|
||||
func (be *Backend) IsPermanentError(err error) bool {
|
||||
return be.b.IsPermanentError(err)
|
||||
}
|
||||
|
||||
func (be *Backend) List(ctx context.Context, t backend.FileType, fn func(backend.FileInfo) error) error {
|
||||
return be.b.List(ctx, t, fn)
|
||||
}
|
||||
|
Reference in New Issue
Block a user