Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

CLI tool to safely remove any file and directory by putting them in the trash

Project description

trashf

CLI tool to safely remove any file and directory by putting them in the trash

Move any file or directory in the trash in a clever and safe way when wanting to remove them. If a file or folder with the same name already exist in the trash, the file or folder to be removed will be renamed with the date before to be moved to the trash (fname + "%Y%m_%d-%H_%M_%S").

installation

with pip:
sudo pip3 install trashf

with yay:
yay -a trashf

with yaourt:
yaourt -a trashf

compatibility

python >= 3

usage

trashf / rt [F_PATH_01 F_PATH_02 ...]
options:
         -h, --help        show this help message and exit

examples

for help:

trashf -h
or
rt --help

move in the trash ($HOME/.local/share/Trash/files) files and folders:

trashf titi/ toto.jpg

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
trashf-1.0.1.tar.gz (3.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page