Pass in the input directory and a file pattern