MCPcopy
hub / github.com/benbjohnson/litestream / isNotExists

Function isNotExists

oss/replica_client.go:680–686  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

678)
679
680func isNotExists(err error) bool {
681 var serviceErr *oss.ServiceError
682 if errors.As(err, &serviceErr) {
683 return serviceErr.Code == "NoSuchKey"
684 }
685 return false
686}
687
688// deleteResultError checks if all requested objects were deleted.
689// OSS SDK doesn't have explicit per-object error reporting like S3, so we verify

Callers 2

OpenLTXFileMethod · 0.70
TestIsNotExistsFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestIsNotExistsFunction · 0.56