Implemented get_files method to retrieve the list of files in a given directory.