get the files in the correct directory