MCPcopy
hub / github.com/kopia/kopia / toContentIDs

Function toContentIDs

cli/command_content_rewrite.go:64–77  ·  view source on GitHub ↗
(s []string)

Source from the content-addressed store, hash-verified

62}
63
64func toContentIDs(s []string) ([]content.ID, error) {
65 var result []content.ID
66
67 for _, cidStr := range s {
68 cid, err := content.ParseID(cidStr)
69 if err != nil {
70 return nil, errors.Wrap(err, "error parsing content ID")
71 }
72
73 result = append(result, cid)
74 }
75
76 return result, nil
77}

Callers 4

runMethod · 0.85
runMethod · 0.85
runOptimizeCommandMethod · 0.85

Calls 1

ParseIDFunction · 0.92

Tested by

no test coverage detected