Create a snapshot method that takes a FileSystem as an argument in addition to the path.