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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trashf-1.0.3.tar.gz.
File metadata
- Download URL: trashf-1.0.3.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0adb2d9129f753f1f9984a5934755802094ca88d219088c2dc142b7c43ff37dd
|
|
| MD5 |
2efe6e1ae471cde6b42dbaca4915af92
|
|
| BLAKE2b-256 |
4e71c79d39596f00d3d2b478888914af4646edf996963adb70047475eca3bf9b
|
File details
Details for the file trashf-1.0.3-py3-none-any.whl.
File metadata
- Download URL: trashf-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42073a8b6e276c835ade11d2e5150940456cb057d5f3e2cf667bbf8c6c1d4000
|
|
| MD5 |
690066c4d0f98d0e4560c3404ca042a4
|
|
| BLAKE2b-256 |
5126dbb6d22b7bc444f68f919c7e01977ebeff71c8ae596b42fd1e31d409ab5a
|