Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uriid1/python-trash-cli
Managing the Trash from the Command Line.
https://github.com/uriid1/python-trash-cli
cli command-line-tool python python3 server-tool tool
Last synced: about 6 hours ago
JSON representation
Managing the Trash from the Command Line.
- Host: GitHub
- URL: https://github.com/uriid1/python-trash-cli
- Owner: uriid1
- Created: 2022-06-28T22:00:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-27T16:23:16.000Z (about 2 years ago)
- Last Synced: 2023-03-06T00:27:16.621Z (over 1 year ago)
- Topics: cli, command-line-tool, python, python3, server-tool, tool
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-trash-cli
Managing the Trash from the Command Line.This script is designed according to the specification:
But does not include 'directorysizes' support.
https://specifications.freedesktop.org/trash-spec/trashspec-latest.html# Usage
```
-P, --put
Sending one or more files to the trash.
The '*' operator is supported to send all
files from the specified directory.
Example: trash --put *-L, --list
show the content of the Trash.
Example: trash --list-RM, --remove
Deleting one or more files from the trash.
Example: trash -RM foo bar-E, --empty
Emptying the Trash.
Use the -y option to delete without confirmation.
Example: trash -E -y-RS, --restore
Restoring one or more files.
Example: trash -RS foo bar-RSA, --restore-all
Restoring all files.
Example: trash --restore-all
```# Install
$ git clone https://github.com/uriid1/python-trash-cli/
$ cd python-trash-cli
$ chmod +x install
$ sh install
$ Done! Delele python-trash-cli folder.# Uninstall
$ rm ~/.local/bin/trash