stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
8.79k stars 778 forks source link

[trash-cli] support on linux please #3288

Open IntoTheBlackHole opened 1 year ago

IntoTheBlackHole commented 1 year ago

Is your feature request related to a problem? Please describe. When I delete something from stash, I neither want to delete it permanently nor only from stashdb. I need it to be moved to a trash folder first and then remove it from stashdb.
This is how many apps on Linux work. They use trash-cli to delete as a Recycle Bin.

Describe the solution you'd like Allow satshapp to use a trash-cli or something else which better supports trash management.
for example: https://pkg.go.dev/github.com/rkoesters/xdg/trash

TamalesEnMiPinata commented 1 month ago

It is desirable to have a Recycle Bin path configurable in stash, similar to other paths: image

If the Recycle Bin path is set (perhaps there would be an additional option to "Enable Recycle Bin"), when a user chooses to delete a scene the normal database updates would occur and as far as Stash is concerned the scene no longer exists. However, in the file system the scene and corresponding media file(s) and generated data would be moved to the Recycle Bin path while preserving directory structure.