jlegewie / zotfile

Zotero plugin to manage your attachments: automatically rename, move, and attach PDFs (or other files) to Zotero items, sync PDFs from your Zotero library to your (mobile) PDF reader (e.g. an iPad, Android tablet, etc.), and extract PDF annotations.
4.06k stars 282 forks source link

How to get address of the pdf file moved by Zotfile? #547

Closed linjunhe closed 3 years ago

linjunhe commented 3 years ago

The pdf files

If the pdf files are managed by Zotfile, (that is, they are not in “Zotero/Storage/8WF36G3B”, but are moved to another folder. The above two links are still available.

However, are there any methods that we can get the new folder address for each pdf file according to “8WF36G3B”?

For example, if we are making a plugin that needs the new address of the pdf file, how can we do it?

jlegewie commented 3 years ago

Not sure what you mean. The path of pdf files is still accessible through the Zotero API when they are moved by zotfile. Only exception is when you move a file to the tablet in "background" mode, which create a copy of the file (so there are two version). But otherwise, the Zotero API will give you the correct path.