completing function that gets all the results from a directory with data files.