FIX: add in missing parameter endsWith so the fileList created files those appropriate files.