MCPcopy 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
651func (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
659func (m *MPath) Sibling() *MPath {

Callers 15

toMPathFunction · 0.95
BuildMethod · 0.80
BeforeCreateMethod · 0.80
BeforeSaveMethod · 0.80
TestMPathEquals_BuildFunction · 0.80
FirstAvailableSlotMethod · 0.80
getNodeChildMethod · 0.80
getNodeLastChildMethod · 0.80
GetNodeChildrenCountsMethod · 0.80
GetNodeChildrenSizeMethod · 0.80
GetNodeChildrenMethod · 0.80

Calls 1

ToStringMethod · 0.95

Tested by 1

TestMPathEquals_BuildFunction · 0.64