looping the file list

using the for loop to list the files