adamreeve / Mendeley-FileSync

A script to synchronise PDF files in Mendeley across multiple machines
GNU General Public License v3.0
24 stars 4 forks source link

Force to overwrite database with text-file paths #7

Closed mherrmann3 closed 8 years ago

mherrmann3 commented 11 years ago

Hey Adam,

its me again. Can you implement the feature to overwrite the file_paths in the database with the ones provided in the text-file for the same hash?

Background: If a file is renamed and synced, Mendeley can not detect this. Subsequently, when your script detects different file_paths, it throws out an Conflict Error - of course. However, your script can (possibly easily) modified to force an overwrite (but I'm not too familiar with things like that). Possible switch could be via the argument "-f". What do you think about it?

Side effect: I would be easy to move your references folder to a complete different path without Mendeley noticing it (except for the watch folders feature).

adamreeve commented 11 years ago

This should be fairly straightforward to add, I'll see if I can get around to adding it some time soon.

mherrmann3 commented 11 years ago

Great. Thanks in advance! This would also help to let the other Mendeley(-database) know of possible changed locations of individual files. Because almost regularly, I move some papers to an other (sub-)folder to account for special topics in my folder structure...

mherrmann3 commented 11 years ago

Thank you so much! Awesome work (as always)!

I saw your fixing just now, because I relied on getting an EMail notification of your post, but I didn't. :-?