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.

Source Distribution

trashf-1.0.2.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

trashf-1.0.2-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page