Fixing batches of broken attachment links & identifying broken paths across the system
In rearranging some linked attachment files several years ago, I broke quite a few links. I didn't worry about the cleanup, because I knew Zutilo could do it. But it's my understanding that Zutilo went obsolete with Zotero 7. (Please let me know if this is untrue.) Has someone else created a utility to batch repair the broken paths to linked attachments? It's a pretty important thing to be able to do.
Also, it would be very helpful to have a utility to report all broken paths to linked attachments.
If we could have a utility that both reports the breaks and offers to fix them in batches--all the better.
Is there such a thing?
Also, it would be very helpful to have a utility to report all broken paths to linked attachments.
If we could have a utility that both reports the breaks and offers to fix them in batches--all the better.
Is there such a thing?
https://github.com/wshanks/Zutilo
This plugin can scan for missing attachments.
https://github.com/SciImage/zotero-attachment-scanner
OTOH Zutilo's Modify Attachment Paths does a search and replace in the database on the paths of the selected items, which AFAIK does not require the file(s) to be located on disk first.
If you do not currently have a Linked Attachment Base Directory set on any synced computer, then each file's linked path will be explicitly stored in the Zotero database as the exact, full path to the file at the time it was added to Zotero. Once you add a LABD, that path is modified in the database with a prefix of "attachments:" in place of the explicit path (that will be shown too when you use Zutilo's Show Attachment Paths). That prefix tells Zotero to insert the LABD in place of the prefix when trying to open the file (the LABD only affects where Zotero *looks* for attachment files; it has no effect on where they get stored).