import typing


def get_path_from_list(to_parse: typing.List[str], path_prefix: str) -> str:
    """Parse a path from a list of path parts."""
    ret = path_prefix

    for i in to_parse:
        ret += f"/{i}"

    return ret.lstrip("/").rstrip("/")