MCPcopy
hub / github.com/restic/restic / IsNotExist

Method IsNotExist

internal/backend/backend.go:65–65  ·  view source on GitHub ↗

IsNotExist returns true if the error was caused by a non-existing file in the backend. The argument may be a wrapped error. The implementation is responsible for unwrapping it.

(err error)

Source from the content-addressed store, hash-verified

63 // The argument may be a wrapped error. The implementation is responsible
64 // for unwrapping it.
65 IsNotExist(err error) bool
66
67 // IsPermanentError returns true if the error can very likely not be resolved
68 // by retrying the operation. Backends should return true if the file is missing,

Callers 15

rmFunction · 0.65
TestBackendFunction · 0.65
StatMethod · 0.65
IsNotExistMethod · 0.65
IsNotExistMethod · 0.65
OpenFunction · 0.65
IsNotExistMethod · 0.65
RemoveMethod · 0.65
beTestFunction · 0.65
TestConfigMethod · 0.65
TestLoadMethod · 0.65
TestBackendMethod · 0.65

Implementers 11

Backendinternal/backend/azure/azure.go
b2Backendinternal/backend/b2/b2.go
Backendinternal/backend/s3/s3.go
MemoryBackendinternal/backend/mem/mem_backend.go
Backendinternal/backend/dryrun/dry_backend.go
Localinternal/backend/local/local.go
Backendinternal/backend/gs/gs.go
Backendinternal/backend/mock/backend.go
Backendinternal/backend/rest/rest.go
beSwiftinternal/backend/swift/swift.go
SFTPinternal/backend/sftp/sftp.go

Calls

no outgoing calls

Tested by 9

TestBackendFunction · 0.52
TestDryFunction · 0.52
newSwiftTestSuiteFunction · 0.52
statFunction · 0.52
TestRestoreIncludesFunction · 0.52
TestRestoreFilterFunction · 0.52
TestRestoreLatestFunction · 0.52
TestHardLinkFunction · 0.52
snapshotsDirExistsFunction · 0.52