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

Function IsStorageSignEnabled

server/common/check.go:16–19  ·  view source on GitHub ↗
(rawPath string)

Source from the content-addressed store, hash-verified

14)
15
16func IsStorageSignEnabled(rawPath string) bool {
17 storage := op.GetBalancedStorage(rawPath)
18 return storage != nil && storage.GetStorage().EnableSign
19}
20
21func CanRead(user *model.User, meta *model.Meta, path string) bool {
22 // nil user is treated as internal/system context and bypasses per-user read restrictions

Callers 3

needSignFunction · 0.92
isEncryptFunction · 0.92
isEncryptFunction · 0.92

Calls 2

GetBalancedStorageFunction · 0.92
GetStorageMethod · 0.65

Tested by

no test coverage detected