Crates.io | trashexpiry |
lib.rs | trashexpiry |
version | 0.1.1 |
source | src |
created_at | 2018-05-19 07:54:18.382662 |
updated_at | 2018-05-19 08:09:54.971451 |
description | Delete files that have been in Linux trash for 60 days. |
homepage | |
repository | https://github.com/takluyver/trashexpiry |
max_upload_size | |
id | 66136 |
size | 11,370 |
Trashexpiry deletes old items from your (Linux) desktop trash.
Usage:
# Install (cargo is Rust's package manager - see https://www.rust-lang.org/)
cargo install trashexpiry
# Run now
trashexpiry
# Set up to run daily
trashexpiry --install-timer
By default, it deletes files which have been in trash for over 60 days.
This time limit is configurable in ~/.config/trashexpiry.ini
:
warn_after_days = 50
delete_after_days = 60
I wrote this partly to get more familiar with Rust. Use at your own risk.
Desktop trash systems normally delete files when you manually empty the trash. But people often fall into one of two patterns:
In contrast, web applications such as GMail have time-limited trash: you have a few weeks to get things back, and then they're gone for good. Time-limited trash doesn't pile up, and because I know it will be deleted automatically, I don't feel a need to keep it clear myself.
So Trashexpiry makes desktop trash behave more like GMail trash.