Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Find orphan files #9

Open
melsophos opened this issue Apr 9, 2018 · 3 comments
Open

Find orphan files #9

melsophos opened this issue Apr 9, 2018 · 3 comments

Comments

@melsophos
Copy link

Do you think it would be possible to search also for orphan files (file in storage/ not attached to any document)? Sometimes I end up with such files for various reasons (bad synchronisation between computers, misuse of extensions, etc.). I guess this would involve a quite different process as the ones you already for finding duplicates and missing attachments so I don't know how easy it is to add this feature. But this would nicely complement the two others. For the output I see two possibilities, either adding "fake" entries with a tag and with the document attached, or writing a log file somewhere.

@retorquere
Copy link
Owner

I'd have to walk the file system and compare to the database. It's not inherently difficult, but for the existing detection I can use the Zotero implementation; I just automate existing functionality. I'll think about it, but no ETAs.

@melsophos
Copy link
Author

This would be very nice, thank you. In any case, there is no hurry, I think this is a general feature that Zotero should have, but it is not critical.

@dmi3kno
Copy link

dmi3kno commented May 5, 2022

Very desirable feature. I am using this plugin together with ZotFile, which is linked and synchronized to cloud storage. Finding orphans has real $$ implication.

May I offer an idea: add all files as additional entries not tied to any items, perhaps even under its own collection and then remove one by one, if matched to one of the existing items in collection. May be expensive, but guarantees a separate collection of "orphans" and reduces to one filesystem-scanning task and multiple Zotero-matching tasks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants