How to export group library with original folder structure and contents?

I have a group library in Zotero with multiple folders containing about 3 GB of Word and PDF documents. I would like to export these documents to my computer and maintain the same directory structure that I have within Zotero.

I found a relevant discussion thread from 2018: https://forums.zotero.org/discussion/73752/is-it-possible-to-export-zotero-library-or-collection-as-files-folders This led me to some downloadable code: https://gist.github.com/retorquere/6bad138046bc0c7b0420166ebcb90028

After installing, I can now right-click on the group library and export the file hierarchy to my computer. But after about 70 files it generates an error and the process halts. I use a Mac so a colleague tried with a PC, but got the same error.

The code may have a glitch or there may be an alternative way to do this. Any ideas?
Thanks!
Sign In or Register to comment.