def get_reformatted_source_path(path: str):
    """Build source path without trailing '/'.

    Args:
        path (str): Original path.

    Returns:
        str: Reformatted path.
    """
    if path.endswith("/"):
        path = path[:-1]
    return path