Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pydio/cells
/ BeforeCreate
Method
BeforeCreate
common/proto/tree/node.go:881–886 ·
view source on GitHub ↗
(*gorm.DB)
Source
from the content-addressed store, hash-verified
879
}
880
881
func
(tn *TreeNode) BeforeCreate(*gorm.DB) error {
882
883
tn.SetLevel(int64(tn.GetMPath().Length()))
884
885
return
nil
886
}
887
888
func
(tn *TreeNode) BeforeSave(*gorm.DB) error {
889
Callers
nothing calls this directly
Calls
3
SetLevel
Method · 0.95
GetMPath
Method · 0.95
Length
Method · 0.80
Tested by
no test coverage detected