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

Function getDestinationMetadata

cmd/put.go:630–639  ·  view source on GitHub ↗
(dbx filesClient, dst string)

Source from the content-addressed store, hash-verified

628}
629
630func getDestinationMetadata(dbx filesClient, dst string) (files.IsMetadata, bool, error) {
631 meta, err := dbx.GetMetadataContext(currentContext(), files.NewGetMetadataArg(dst))
632 if err != nil {
633 if isGetMetadataNotFoundError(err) {
634 return nil, false, nil
635 }
636 return nil, false, err
637 }
638 return meta, true, nil
639}
640
641func isGetMetadataNotFoundError(err error) bool {
642 var apiErr files.GetMetadataAPIError

Callers 3

checkPutStdinDestinationFunction · 0.85
checkPutDestinationFunction · 0.85
relocationSkippedResultFunction · 0.85

Calls 3

currentContextFunction · 0.85
GetMetadataContextMethod · 0.65

Tested by

no test coverage detected