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

Function isEncrypt

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

Source from the content-addressed store, hash-verified

172}
173
174func isEncrypt(meta *model.Meta, path string) bool {
175 if common.IsStorageSignEnabled(path) {
176 return true
177 }
178 if meta == nil || meta.Password == "" {
179 return false
180 }
181 return common.MetaCoversPath(meta.Path, path, meta.PSub)
182}

Callers 4

signedFileURLFunction · 0.70
callFSGetMethod · 0.70
buildFSGetRawURLFunction · 0.70
callFSListMethod · 0.70

Calls 2

IsStorageSignEnabledFunction · 0.92
MetaCoversPathFunction · 0.92

Tested by

no test coverage detected