Create valid.csv

the output file which display the list of files with valid condition.