Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pydio/cells
/ Length
Method
Length
common/proto/tree/node.go:651–656 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
649
}
650
651
func
(m *MPath) Length() int {
652
if
m == nil {
653
return
0
654
}
655
return
len(strings.Split(m.ToString(),
"."
))
656
}
657
658
// Sibling of a specific path
659
func
(m *MPath) Sibling() *MPath {
Callers
15
toMPath
Function · 0.95
Build
Method · 0.80
BeforeCreate
Method · 0.80
BeforeSave
Method · 0.80
TestMPathEquals_Build
Function · 0.80
FirstAvailableSlot
Method · 0.80
getNodeChild
Method · 0.80
getNodeLastChild
Method · 0.80
getNodeFirstAvailableChildIndex
Method · 0.80
GetNodeChildrenCounts
Method · 0.80
GetNodeChildrenSize
Method · 0.80
GetNodeChildren
Method · 0.80
Calls
1
ToString
Method · 0.95
Tested by
1
TestMPathEquals_Build
Function · 0.64