View Single Post
Old 09-26-2020, 04:54 AM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,837
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by davidfor View Post
When you delete a book from calibre, it does so in the same way as the device does (with the exception of cleaning up empty directories). So, it doesn't delete those files.

The files are created when the book is first opened on the device (though it might be different if you use ADE to put the book on the device). The annotations files are maintained when reading an epub. As you add and remove annotations they are changed in both the database and the file. The latter is done by the RMSDK and I doubt there is a way to turn it off. It is handled a little differently if you edit the annotations from outside a book. From memory, it updates the annotations in the database, but only updates the file when the books is opened and a merge is done.

Not removing these files does allow an epub to be deleted and then added again and the annotations not lost. But, I'll look at adding an option to the driver to clean them up. And sometime I have to write a cleanup function for the Kobo Utilities plugin to do this a well.
Would you also please add in to delete the excess XML files? Thanks.
JSWolf is offline   Reply With Quote