def remove_last_entry_from_path(
        path: str):
    """
    - Use this to remove the last entry from a path.

    :param path: Initial path.

    :return: New path with the last entry removed.
    """

    splitted = path.split('/')
    new_path = ''

    for index in range(len(splitted) - 1):
        new_path += '/' + splitted[index]

    return new_path