MCPcopy Index your code
hub / github.com/kopia/kopia / nameToDisplay

Method nameToDisplay

cli/command_ls.go:144–155  ·  view source on GitHub ↗
(prefix string, e fs.Entry)

Source from the content-addressed store, hash-verified

142}
143
144func (c *commandList) nameToDisplay(prefix string, e fs.Entry) string {
145 suffix := ""
146 if e.IsDir() {
147 suffix = "/"
148 }
149
150 if c.long || c.recursive {
151 return prefix + e.Name() + suffix
152 }
153
154 return e.Name()
155}

Callers 1

printDirectoryEntryMethod · 0.95

Calls 2

NameMethod · 0.65
IsDirMethod · 0.45

Tested by

no test coverage detected