fast, small and easy file trasher for *nix
MIT License
to-trash
to-trash
(tt
for short) is a fast, small, and hopefully FreeDesktop-compliant file trasher for Linux (or other Unix-like systems which comply to this standard).
Requisites:
git clone https://github.com/vrmiguel/to-trash
cargo install --path to-trash
Usage: tt [files to be trashed]
tt
aims to have compliance with the FreeDesktop.org Trash specification.
Checked items below are what tt
considers to be implemented, unchecked is anything that has no or partial implementation.
Some of those are my interpretation of the spec. and not necessarily verbatim to the specification text.
$XDG_DATA_HOME/Trash
.
XDG_DATA_HOME
is not defined, falls back to ~/.local/share/Trash
.$trash/files
.Path
key with the absolute pathname of the original location of the file/directoryDeletionDate
key with the date and time when the file/directory was trashed in the YYYY-MM-DDThh:mm:ss
format and in the user's local timezone.$trash/directorysizes
file, which is a cache of the sizes of the directories that were trashed into this trash directory.
$topdir/.Trash
does not exist or has not passed the checks:
$topdir/.Trash-$uid
directory does not exist, the implementation must immediately create it, without any warnings or delays for the user.Feel free to open an issue if you feel like tt
is lacking any important features.