Add functionality to list files in a directory.