-# Set the name of output file within the collection
-out.set_current_file_name("md5sum.txt")
-
-# Get an iterator over the files listed in the collection
-all_files = collection.all_files()
-
-# Iterate over each file
-for input_file in all_files:
- # Create the object that will actually compute the md5 hash
- digestor = hashlib.new('md5')
-
- while True:
- # read a 1 megabyte block from the file
- buf = input_file.read(2**20)