@staticmethod
def _get_all_parent_nodes(path, delimiter='/'):
    """Get path to all parent nodes for current leaf, starting from leaf's direct parent down to root"""
    pos = path.rfind(delimiter)
    while pos != -1:
        yield path[:pos + 1]
        pos = path.rfind(delimiter, 0, pos)
