Zotfile: Can't effectively change the directory for saving files
Hi all,
I've recently re-installed Zotero on a new laptop and wanted to use Zotfile for storing files on Google Drive. Before that, I used WebDAV with my old university cloud.
It all worked well, the files were all copied to the Google Drive. However, I then re-assigned the drive letter from G to Z and also changed the directory accordingly. But for some reason, the path on drive G is still associated with the Zotero entries, changing it in the Zotfile options doesn't do it. The effect is that I can't access any of me PDFs right now. I tried everything: re-installing Zotero and Zotfile, deleting the profiles. The problem is that switching back to the WebDAV solution doesn't work. All PDFs have the chain symbol now, which was the effect of Zotfile as I understood. But weirdly, this is also the case when I re-install Zotero without Zotfile, it's still there. It seems like the file is permanently associated with the link that doesn't exist. What can I do?!
I've recently re-installed Zotero on a new laptop and wanted to use Zotfile for storing files on Google Drive. Before that, I used WebDAV with my old university cloud.
It all worked well, the files were all copied to the Google Drive. However, I then re-assigned the drive letter from G to Z and also changed the directory accordingly. But for some reason, the path on drive G is still associated with the Zotero entries, changing it in the Zotfile options doesn't do it. The effect is that I can't access any of me PDFs right now. I tried everything: re-installing Zotero and Zotfile, deleting the profiles. The problem is that switching back to the WebDAV solution doesn't work. All PDFs have the chain symbol now, which was the effect of Zotfile as I understood. But weirdly, this is also the case when I re-install Zotero without Zotfile, it's still there. It seems like the file is permanently associated with the link that doesn't exist. What can I do?!
If you never had a base directory set, I believe your only option now is to use the Zutilo add-on to batch change file links. Make sure you have a good back-up of your database -- this *can* go disastrously wrong with minor typos/mistakes.
Generally, this is why we recommend against linked file set ups. They're fragile and error prone, especially if you don't have a precise understanding of how linked files work in Zotero (which you shouldn't need to have).
(But linked files are still fragile and error prone!)
G:/Documents/Zotero-files in Zotero and are actually in Z:/Documents/Zotero-files
setting the linked basement directory to Z:/Documents or Z:/Documents/Zotero-files would try (likely successfully) to relink them?
The first thing to know is that the Zotfile 'Custom Location' is where linked PDFs are *stored*; but not necessarily where Zotero *looks* for each linked PDF when you want to open it. That depends on whether you have a setting for Linked Attachment Base Directory in Zotero preferences.
If you do *not* have a Linked Attachment Base Directory set there, that full storage path that Zotfile used to store the PDF is baked into the linked file's location in the Zotero sqlite database, eg G:\ZoteroAttachments\filename.pdf. That is an 'absolute' path. And that full path is where Zotero looks for the linked PDF file when you try to open it.
If however you *do* have a Linked Attachment Base Directory set, that is where Zotero looks for the linked PDF. In the Zotero sqlite database, the above absolute path G:\ZoteroAttachments\filename.pdf is changed by Zotero to attachments:filename.pdf when the LABD setting is first added. That's a 'relative' path.
So there is not necessarily a *need* to set a Linked Attachment Base Directory in Zotero preferences for linked PDFs - it depends on your setup.
Absolute-path linked PDF attachments work fine if your linked PDFs are at the same absolute original storage path (eg G:\ZoteroAttachments\filename.pdf) on each computer where you use Zotero. Or if you only use Zotero on one computer. There are presumably also particular user scenarios where linked PDF are stored at various *different* locations on a given computer, where you would wish to preserve those absolute paths in order for those PDFs to be found/opened by Zotero.
On the other hand, relative-path linked PDF attachments (ie with a Linked Attachment Base Directory setting) allow you to have your linked PDFs stored at a different path on different computers. Or to easily change their storage path on a single computer and have them still found by Zotero. However should you ever wish to revert back to absolute from relative paths, the specification of each original absolute path for each PDF has been removed from the sqlite database; [edited:] so a complete reversion may not always be possible (unless I'm missing something).
In any case I have edited my original post to say "a complete reversion may not always be possible". Again ... unless I've missed something.
And let's not make Zotfile/linked files sound harder than they are. Zotfile/linked PDF files just 'work' for most people who use them. ;)