MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / getHeader

Function getHeader

server/mcp/fs_list.go:167–172  ·  view source on GitHub ↗
(meta *model.Meta, path string)

Source from the content-addressed store, hash-verified

165}
166
167func getHeader(meta *model.Meta, path string) string {
168 if meta != nil && common.MetaCoversPath(meta.Path, path, meta.HeaderSub) {
169 return meta.Header
170 }
171 return ""
172}
173
174func isEncrypt(meta *model.Meta, path string) bool {
175 if common.IsStorageSignEnabled(path) {

Callers 2

callFSGetMethod · 0.70
callFSListMethod · 0.70

Calls 1

MetaCoversPathFunction · 0.92

Tested by

no test coverage detected