MCPcopy
hub / github.com/kopia/kopia / shouldInclude

Method shouldInclude

cli/command_index_inspect.go:127–135  ·  view source on GitHub ↗
(ci content.Info)

Source from the content-addressed store, hash-verified

125}
126
127func (c *commandIndexInspect) shouldInclude(ci content.Info) bool {
128 if len(c.contentIDs) == 0 {
129 return true
130 }
131
132 contentID := ci.ContentID.String()
133
134 return slices.Contains(c.contentIDs, contentID)
135}
136
137type indexBlobPlusContentInfo struct {
138 indexBlob blob.Metadata

Callers 1

dumpIndexBlobEntriesMethod · 0.95

Calls 2

StringMethod · 0.45
ContainsMethod · 0.45

Tested by

no test coverage detected