This method creates a snapshot of all the files in the current
directory.
The new($directory, $file_extension) method creates a snapshot of only the $file_extension in the $directory.