def getFileLocations(years, filings):
    """ Returns a list with the folder names where the data will be found """

    fileLocations = list()
    for year in years:
        if filings == ['10-K']:
            fileLocations.append(year + 'q1/')  # only valid if the user wants solely 10-K's as they are filed in Q1
        else:
            fileLocations.append(year + 'q1/')
            fileLocations.append(year + 'q2/')
            fileLocations.append(year + 'q3/')
            fileLocations.append(year + 'q4/')
    return fileLocations