How to print a list of files?