MCPcopy
hub / github.com/kopia/kopia / compressionInfoStringString

Method compressionInfoStringString

cli/command_content_list.go:121–137  ·  view source on GitHub ↗
(b content.Info)

Source from the content-addressed store, hash-verified

119}
120
121func (*commandContentList) compressionInfoStringString(b content.Info) string {
122 h := b.CompressionHeaderID
123 if h == content.NoCompression {
124 return "-"
125 }
126
127 s := string(compression.HeaderIDToName[h])
128 if s == "" {
129 s = fmt.Sprintf("compression-%x", h)
130 }
131
132 if b.OriginalLength > 0 {
133 s += " " + formatCompressionPercentage(int64(b.OriginalLength), int64(b.PackedLength))
134 }
135
136 return s
137}

Callers 2

outputLongMethod · 0.95
outputCompressedMethod · 0.95

Calls 1

Tested by

no test coverage detected