invoke-ai / InvokeAI

Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.
https://invoke-ai.github.io/InvokeAI/
Apache License 2.0
23.77k stars 2.44k forks source link

[bug]: Deleting files circumvents Recycle Bin #7345

Closed mcbexx closed 6 days ago

mcbexx commented 1 week ago

Is there an existing issue for this problem?

Operating system

Windows

GPU vendor

Nvidia (CUDA)

GPU model

No response

GPU VRAM

No response

Version number

5.4.1

Browser

Firefox 132

Python dependencies

No response

What happened

I accidentally hit the delete button next to the "previous image" caret (tangentially, I think those UI elements should not be that close to another - see screenshot below for clarification -, given that the deletion appears to be permanent). I wanted to retrieve the deleted image, but it was not in my Windows Recycle Bin.

Deleted some other expendable images to confirm and none of them went to the Recycle Bin but were irretrievably removed from the file system. And since there is no undo function for file deletion in the UI (I suggested it once, see Issue #4543), I don't see a way to get the image back. Seems like an oversight.

Bummer.

grafik

What you expected to happen

I expected images that are deleted from within the Invoke UI to get moved to the Windows Recycle Bin.

How to reproduce the problem

Delete file from board, either by any of the various trashbin icons or by hitting the DEL key.

Additional context

No response

Discord username

No response

psychedelicious commented 6 days ago

We previously used send2trash for this, but have dropped it:

While we will not restore the trash/recycle bin handling, we're still happy to accept a contribution for soft-delete as described in my response #4543.