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

Function isEncrypt

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

Source from the content-addressed store, hash-verified

199}
200
201func isEncrypt(meta *model.Meta, path string) bool {
202 if common.IsStorageSignEnabled(path) {
203 return true
204 }
205 if meta == nil || meta.Password == "" {
206 return false
207 }
208 if !common.MetaCoversPath(meta.Path, path, meta.PSub) {
209 return false
210 }
211 return true
212}
213
214func pagination(objs []model.Obj, req *model.PageReq) (int, []model.Obj) {
215 pageIndex, pageSize := req.Page, req.PerPage

Callers 4

FsArchiveMetaFunction · 0.70
TestIsEncryptFunction · 0.70
FsListFunction · 0.70
FsGetFunction · 0.70

Calls 2

IsStorageSignEnabledFunction · 0.92
MetaCoversPathFunction · 0.92

Tested by 1

TestIsEncryptFunction · 0.56