from pathlib import Path
from typing import List


def read_csv_to_list(path: Path) -> List[str]:
    """Takes in a csv file path and splits the strings
    and puts them into a list

    Args:
        path (Path): CSV file path

    Returns:
        List[str]: List of strings from the file
    """
    list_of_strings = []
    with open(path) as file:
        for line in file:
            line = line.strip()
            list_of_strings.extend([match for match in line.split(",") if match != ""])

    return list_of_strings