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

Function newRelocationResultFromMetadata

cmd/relocation_output.go:29–43  ·  view source on GitHub ↗
(arg *files.RelocationArg, metadata files.IsMetadata)

Source from the content-addressed store, hash-verified

27}
28
29func newRelocationResultFromMetadata(arg *files.RelocationArg, metadata files.IsMetadata) (relocationResult, error) {
30 result, err := jsonMetadataFromDropbox(metadata)
31 if err != nil {
32 return relocationResult{}, err
33 }
34 result.PathDisplay = metadataDisplayPath(arg.ToPath, result.PathDisplay)
35
36 return relocationResult{
37 Input: relocationInput{
38 FromPath: arg.FromPath,
39 ToPath: arg.ToPath,
40 },
41 Result: result,
42 }, nil
43}
44
45func relocationOperationResult(status string, result relocationResult) jsonOperationResult {
46 return newJSONOperationResult(status, result.Result.Type, result.Input, result.Result)

Callers 2

newRelocationResultFunction · 0.85
relocationSkippedResultFunction · 0.85

Calls 2

jsonMetadataFromDropboxFunction · 0.85
metadataDisplayPathFunction · 0.85

Tested by

no test coverage detected