def get_list_of_files(infile):
    """
    Makes list of file names 

    Parameters
    ----------
    infile: pathlib.PosixPath

    Returns
    -------
    filelist: list
        list of file names
    """
    filelist = []
    with open(infile) as f:
        for line in f:
            filelist.append(line.strip())

    return filelist