MCPcopy Index your code
hub / github.com/perkeep/perkeep / FileName

Method FileName

pkg/schema/blob.go:279–281  ·  view source on GitHub ↗

FileName returns the StaticFile's FileName if is not the empty string, otherwise it returns its FileNameBytes concatenated into a string.

()

Source from the content-addressed store, hash-verified

277
278// FileName returns the StaticFile's FileName if is not the empty string, otherwise it returns its FileNameBytes concatenated into a string.
279func (sf StaticFile) FileName() string {
280 return sf.b.ss.FileNameString()
281}
282
283// AsStaticFile returns the Blob as a StaticFile if it represents
284// one. Otherwise, it returns false in the boolean parameter and the

Callers

nothing calls this directly

Calls 1

FileNameStringMethod · 0.80

Tested by

no test coverage detected