@staticmethod
def _get_root_parent_node(path, delimiter='/', rootpath=None):
    """Get path to the root parent of current leaf"""
    if rootpath:
        startpos = len(rootpath) + 1
    else:
        startpos = 0
    m = path.find(delimiter, startpos)
    return path[:m] if m >= 0 else None
