MCPcopy
hub / github.com/kashav/fsql / shortPath

Method shortPath

transform/format.go:109–114  ·  view source on GitHub ↗

shortPath returns the short path of the current file. Only supports the `name` attribute.

()

Source from the content-addressed store, hash-verified

107// shortPath returns the short path of the current file. Only supports the
108// `name` attribute.
109func (p *FormatParams) shortPath() (interface{}, error) {
110 if p.Attribute != "name" {
111 return nil, nil
112 }
113 return p.Info.Name(), nil
114}
115
116// hash applies the provided hash algorithm h with ComputeHash.
117func (p *FormatParams) hash(h hash.Hash) (interface{}, error) {

Callers 1

FormatFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected