xdg-utils should contain a trash bin tool
Submitted by Tassilo Horn
Assigned to Portland Bugs
Description
[Sorry for filing this in the wrong product, but there seems to be no xdg-utils component.]
Most of the time I'm doing my file management in the shell, where `rm' means dead and gone forever. I'd love to see a command line tool facilitating the freedesktop.org trash bin. I would imagine it to work like this:
Move baz.txt to the trash bin
$ xdg-trash /foo/bar/baz.txt
Move the whole bar directory to the trash bin
$ xdg-trash /baz/bar/
List the trash bin's contents (lists the original locations)
$ xdg-trash --list [1] /foo/bar/baz.txt [2] /baz/bar/
Restore the bar directory
$ xdg-trash --restore 2
Empty the trash bin
$ xdg-trash --empty