checking the file names in folders and subfolders