19 releases

0.4.3 May 29, 2024
0.4.1 Nov 3, 2022
0.3.2 Dec 26, 2021
0.3.1 Jun 25, 2021
0.1.1 Nov 27, 2019

#577 in Filesystem

Download history 200/week @ 2025-07-28 194/week @ 2025-08-04 215/week @ 2025-08-11 219/week @ 2025-08-18 179/week @ 2025-08-25 119/week @ 2025-09-01 248/week @ 2025-09-08 153/week @ 2025-09-15 180/week @ 2025-09-22 147/week @ 2025-09-29 181/week @ 2025-10-06 206/week @ 2025-10-13 178/week @ 2025-10-20 134/week @ 2025-10-27

314 downloads per month

GPL-3.0-only

68KB
2K SLoC

garbage

Build Status crates.io

Rust ver of trash-cli.

  • Windows/Recycle Bin not supported

Installation

cargo install garbage

Usage

Run garbage --help to understand how it's used!

$ garbage put file1 file2 ...

$ garbage restore
[..interactive]

$ garbage list

$ garbage empty [days]

If you use a bash-ish shell, feel free to add this to your shell's rc file:

alias rm='garbage put' # Make sure garbage is in your path

Features

  • Put
  • List
  • Restore
  • Tests...

Spec Compliance

  • Picking a Trash Directory
  • Emptying
  • Directory size cache (optional)

Issues

If you find a bug or are requesting a feature, file it here: https://todo.sr.ht/~mzhang/garbage

About

Author: Michael Zhang

License: GPLv3, see LICENSE.md for full text.

Dependencies

~10–15MB
~264K SLoC