fsantini / KoboCloud

A set of scripts to synchronize a kobo reader with popular cloud services
Other
958 stars 94 forks source link

Avoid useless rescan : Detect if local lib files have changed after sync #177

Closed ospring closed 3 months ago

ospring commented 3 months ago

Rescan trigger after each sync seems to be the origin to issue #172. The PR add a comparaison of the content of the lib directory before and after the sync. The rescan will be launch only if the content has changed. Comparaison is done with the result of a detailed LS command (so, file name, size and dates). To avoid the date of synced files to change after each sync, adding a --remote-time to the CURL command will allow to use the remote date of the file so if files are not changed remotely, dates on the local lib will stay the same and allow comparaison of the lib content to work as expected.

geephile commented 3 months ago

I still experience the issue (but i might be to lazy in the way i upgrade, dropping the new KoboRoot.tgz in the .kobo folder instead of uninstalling KoboCloud and after that installing it). If my upgrade method is not correct, please point me to the correct way :)