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.3.tar.gz (3.8 kB view hashes)

Uploaded source

Built Distribution

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

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page