As you can see, these hashes don't match. However it's hard to grasp for me because shouldn't they be identical? It would be great because then I could compare hashes with existing files (e.g. to avoid duplication).
Am I doing something wrong here or is it entirely impossible to have the same hash for the file-like (v_file) object as the file-system (fs_file) object?
hash_blake = blake2b()while True:chunk = file.read(8192)if chunk: hash_blake.update(chunk)if len(chunk) == 0: break
file.seek(0) # this is the important part
You received this message because you are subscribed to a topic in the Google Groups "cherrypy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cherrypy-users/F3Nf8tFisPc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cherrypy-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cherrypy-users/4CD8860F-D0D5-48CD-BA34-2FFC4A0FBAB6%40probo.com.