return an array of files in a directory.