Trash
Вот полный перевод всего предоставленного текста на английский язык. Я постарался сохранить структуру, исправить очевидные опечатки в оригинале (например, год 2222 → 2022) и сделать текст естественным и читаемым.
Trash Utility description
Trash Utility — a lightweight console utility in C++17 for Linux. It moves files and folders to the trash ~/.local/share/Trash according to the Freedesktop.org standard (similar to gio trash, trash-put).
Main features:
Moving files/directories
Creating .trashinfo (original path + deletion date in ISO 8601)
Automatic name conflict resolution (_1, _2…)
Support for relative and absolute paths
Creates files/ and info/ folders if needed
Only standard C++17 library (~120 lines of code)
Technically: compiled with g++ -std=c++17, tested on Ubuntu/Debian/Fedora.
MVP limitations: no restore, list, empty, external drive support, or flags.
Useful as: an ultra-lightweight alternative to trash-cli, a safe replacement for rm in scripts.
Trash Utility description
Trash Utility — a lightweight console utility in C++17 for Linux. It moves files and folders to the trash ~/.local/share/Trash according to the Freedesktop.org standard (similar to gio trash, trash-put).
Main features:
Moving files/directories
Creating .trashinfo (original path + deletion date in ISO 8601)
Automatic name conflict resolution (_1, _2…)
Support for relative and absolute paths
Creates files/ and info/ folders if needed
Only standard C++17 library (~120 lines of code)
Technically: compiled with g++ -std=c++17, tested on Ubuntu/Debian/Fedora.
MVP limitations: no restore, list, empty, external drive support, or flags.
Useful as: an ultra-lightweight alternative to trash-cli, a safe replacement for rm in scripts.