MCPcopy
hub / github.com/perkeep/perkeep / newCommonFilenameMap

Function newCommonFilenameMap

pkg/schema/schema.go:703–709  ·  view source on GitHub ↗
(fileName string)

Source from the content-addressed store, hash-verified

701}
702
703func newCommonFilenameMap(fileName string) *Builder {
704 bb := base(1, "" /* no type yet */)
705 if fileName != "" {
706 bb.SetFileName(fileName)
707 }
708 return bb
709}
710
711var populateSchemaStat []func(schemaMap map[string]interface{}, fi os.FileInfo)
712

Callers 3

NewFileMapFunction · 0.85
NewDirMapFunction · 0.85
NewCommonFileMapFunction · 0.85

Calls 2

baseFunction · 0.85
SetFileNameMethod · 0.80

Tested by

no test coverage detected