How do I search for files in a certain directory of a certain type and then print the output to the console?