def get_parent_path(full_path):
    """ Return parent path for full_path"""
    parent_path, node_name = full_path.rstrip('/').rsplit('/',1)  # rstrip in case is group (ending with '/')
    if parent_path == "":
        parent_path = "/"
    return parent_path