Ok, I am implementing incremental uploads for docput. It means I read a bunch of...

@cinebox@masto.hackers.town

Ok, I am implementing incremental uploads for docput. It means I read a bunch of files, store their hashes, then ask the server which of those hashes it already has. Then I can skip uploading those files

The problem is that the obvious way to solve this is to read the file once for the hash, then a second time if it’s needed for upload. But what if the file changes in between?

I guess I hash it on the second read and compare?