(self)
return len(self.path.split(TreeGrid.path_sep))
Return the path depth of the current node.
Return the path depth of the current node.
Return the path depth of the current node .
def path_depth(self) -> int:
        """Return the path depth of the current node."""
        return len(self.path.split(TreeGrid.path_sep))
def path_depth ( self ) -> int : return len ( self . path . split ( TreeGrid . path_sep ) )