oberblastmeister / trashy

a cli system trash manager, alternative to rm and trash-cli
Apache License 2.0
343 stars 12 forks source link

Error on `empty` when symlink to unmounted drive present #115

Open fmorroni opened 5 months ago

fmorroni commented 5 months ago

I accidentally created some symlinks to images in a mounted drive. I deleted them with trashy put. Unmounted the drive and forgot about it. Now I'm trying to empty the trash but I get the error:

error: Error during a `trash` operation: FileSystem { path: "~/.local/share/Trash/files/IMG_20240310_220717_1.jpg.2", kind: NotConnected }

The file ~/.local/share/Trash/files/IMG_20240310_220717_1.jpg.2 is a symlink to an image in the unmounted drive.

I compiled from source and there hasn't been any changes since, so trashy is up to date (v 2.0.0)

fmorroni commented 5 months ago

May be related to https://github.com/oberblastmeister/trashy/issues/89