Skip to main content

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

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

yatrash-0.1.3.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distribution

yatrash-0.1.3-py3-none-any.whl (16.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