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

Function MetaCoversPath

server/common/check.go:80–85  ·  view source on GitHub ↗
(metaPath, reqPath string, applyToSubFolder bool)

Source from the content-addressed store, hash-verified

78}
79
80func MetaCoversPath(metaPath, reqPath string, applyToSubFolder bool) bool {
81 if utils.PathEqual(metaPath, reqPath) {
82 return true
83 }
84 return utils.IsSubPath(metaPath, reqPath) && applyToSubFolder
85}
86
87// ShouldProxy TODO need optimize
88// when should be proxy?

Callers 12

whetherHideFunction · 0.92
getReadmeFunction · 0.92
getHeaderFunction · 0.92
isEncryptFunction · 0.92
getReadmeFunction · 0.92
getHeaderFunction · 0.92
isEncryptFunction · 0.92
TestCoversPathFunction · 0.85
CanReadFunction · 0.85
CanWriteFunction · 0.85
CanAccessFunction · 0.85

Calls 2

PathEqualFunction · 0.92
IsSubPathFunction · 0.92

Tested by 1

TestCoversPathFunction · 0.68