Quote:
Originally Posted by readx
Sorry, I don't get what you're doing with the hash.
By design, hashes will stay the same if the file name changes.
A file's hash is the hash of its contents. Metadata, such as file names, timestamps, and permissions, has no influence on the hash. see stackoverflow or stackexchange
|
I am using Koreader to read epubs on all my devices (including windows - under WSL). Koreader produces its own metadata file to keep the highlights, annotations, page numbers, etc. which is separate from the book's epub. The Koreader-generated metadata files for each book are then synchronized using another app. The sync app (Kohighlights) checks the respective epub hash numbers to determine if it is dealing with the same book or not. Apparently, when epub in my Calibre library is transferred to the devices (such as Kobo reader), it no longer has the same hash. Calibre setting prevents storing metadata inside the epub so this is not an issue. i.e. the internal metadata inside the epub files are not being altered. I tried a manual copy of epubs from Calibre library directory directly to a folder on my sage reader. In such a case the hash remains the same.