Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files remain on the harddrive #13

Closed
adeldaoud opened this issue Nov 15, 2022 · 11 comments
Closed

Files remain on the harddrive #13

adeldaoud opened this issue Nov 15, 2022 · 11 comments

Comments

@adeldaoud
Copy link

Hi! I tried delitemwithatt, and it removes the attachment in Zotero but the files remain on the harddrive. That defeats the purpose of this plugin. Is this a bug perhaps?

@redleafnew
Copy link
Owner

image
Do you use the context menu in this plugin?

@adeldaoud
Copy link
Author

adeldaoud commented Nov 15, 2022 via email

@redleafnew
Copy link
Owner

The folder deletion has been considered, and did not added in the plugin in case of there were more than one files in the folder.

@redleafnew
Copy link
Owner

And you can scan and delete the empty folder with other application if there is only one file in the folder.

@adeldaoud
Copy link
Author

I see. It would be very useful to delete folders as well, as HTML items will be saved in a folder with multiple files. Those multiple fiels are the ones that are hardest to get rid off manually. Would it be possible to add that feature of deleting a folder? It would be very very useful.

@redleafnew
Copy link
Owner

It will not happen in the near future, sorry. For the HTML items, they could be saved as single web page file with mhtml as the extenstion.
image

@adeldaoud
Copy link
Author

Good idea reagrding the mhtml. Sorry to hear that it will not be supported any time soon. Incidentally, do you have a suggestion for how I can get rid of those specific folders from Zotero and my harddrive in a batch operation?

Zotero creates those folders for HTML attachments from the past, containing multiple files. I really would like to batch delete all items with HTML folders. I am setting up a sync folder solution on Onedrirve, according to Zotero instructions of splitting the database and attached files. However, having a myriad of tiny files is creating issues for OneDrive

@redleafnew
Copy link
Owner

After searching, the script was found, however, I did not try it.

https://devblogs.microsoft.com/oldnewthing/20080417-00/?p=22703

@adeldaoud
Copy link
Author

Thanks for the tip. However, the Zotero storage folders I am referring to are not empty. They live in the Zotero storage folder like so, and wondering if those can be deleted, for the ones with HMTL files.
image

@redleafnew
Copy link
Owner

You could use ZotFile, move the attachments to another folder, then the attachnents with items will be moved the folder, and the orphan attachments will not.

@dstillman
Copy link

@redleafnew: This is just a misunderstanding on @adeldaoud's part:

https://forums.zotero.org/discussion/comment/422179/#Comment_422179

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

No branches or pull requests

3 participants