def _get_folder_info(folder):
    """Get names and descriptions for all parent folders except top level.
    """
    folder_info = ""
    if folder and folder.parent:
        folder_info = _get_folder_info(folder.parent)
        folder_info += " %s %s" % (
            folder.name.replace("Unnamed folder", ""),
            folder.description or "")
    return folder_info