Safely move files into a trash can instead of `rm`.
Project description
yatrash
Safely move files into a trash can instead of rm.
OS Independent, as long as your OS supports Python's pathlib and shutil.
Now living on Github
Detailed usage
$ trash --help
usage: __main__.py [-h] [--trash-dir TRASH_DIR]
[trash_files [trash_files ...]]
...
see the real --help for more
Why do we need another trash utility?
This is mostly for self-educational purposes.
If you actually want a trash utility, see trash-cli which implements the xdg trash specification, so it will play nicely with your Desktop's trash and other tools. It also features more utilities, such as recover.
Origin
- CodeReview
- Github Gist
- Github Repository (current home)
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 yatrash-0.1.3.tar.gz.
File metadata
- Download URL: yatrash-0.1.3.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29247a1d1c3fe60abbab9d9326f9be7bdc7f768647a8e4577b156ca73e392f59
|
|
| MD5 |
94e06a5b6f6ec693846c9173f74d95f4
|
|
| BLAKE2b-256 |
aa296d7698527e3e4b2086a545c6ff02c75f9a4ec416a1dffd82f8816a575a75
|
File details
Details for the file yatrash-0.1.3-py3-none-any.whl.
File metadata
- Download URL: yatrash-0.1.3-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
854196f622f05d5ed6570747db7c5f44b915766f126cb5a443f72e7035b7ab07
|
|
| MD5 |
bebc98fcd85b036c27f0fe6d939425e3
|
|
| BLAKE2b-256 |
07e136dc5d24f57d2107ecb0ca768531e24bfde0b2d08f725647a2a397cb78e2
|