Skip to main content

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.

Files for trashf, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size trashf-1.0.3-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size trashf-1.0.3.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page