MCPcopy Create free account
hub / github.com/dropbox/dbxcli / isGetMetadataNotFoundError

Function isGetMetadataNotFoundError

cmd/put.go:641–651  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

639}
640
641func isGetMetadataNotFoundError(err error) bool {
642 var apiErr files.GetMetadataAPIError
643 if errors.As(err, &apiErr) {
644 return getMetadataAPIErrorIsNotFound(&apiErr)
645 }
646 var apiErrPtr *files.GetMetadataAPIError
647 if errors.As(err, &apiErrPtr) {
648 return getMetadataAPIErrorIsNotFound(apiErrPtr)
649 }
650 return false
651}
652
653func getMetadataAPIErrorIsNotFound(err *files.GetMetadataAPIError) bool {
654 return err != nil &&

Callers 1

getDestinationMetadataFunction · 0.85

Calls 1

Tested by

no test coverage detected