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

Function getHeader

server/handles/fsread.go:194–199  ·  view source on GitHub ↗
(meta *model.Meta, path string)

Source from the content-addressed store, hash-verified

192}
193
194func getHeader(meta *model.Meta, path string) string {
195 if meta != nil && common.MetaCoversPath(meta.Path, path, meta.HeaderSub) {
196 return meta.Header
197 }
198 return ""
199}
200
201func isEncrypt(meta *model.Meta, path string) bool {
202 if common.IsStorageSignEnabled(path) {

Callers 3

TestGetHeaderFunction · 0.70
FsListFunction · 0.70
FsGetFunction · 0.70

Calls 1

MetaCoversPathFunction · 0.92

Tested by 1

TestGetHeaderFunction · 0.56