/usr/share/pyshared/trash_cli-0.12.7.egg-info/PKG-INFO is in trash-cli 0.12.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | Metadata-Version: 1.0
Name: trash-cli
Version: 0.12.7
Summary: Command line interface to FreeDesktop.org Trash.
Home-page: https://github.com/andreafrancia/trash-cli
Author: Andrea Francia
Author-email: me@andreafrancia.it
License: GPL v2
Description: trash-cli - Command Line Interface to FreeDesktop.org Trash.
============================================================
|Donate|_
trash-cli trashes files recording the original path, deletion date, and
permissions. It uses the same trashcan used by KDE, GNOME, and XFCE, but you
can invoke it from the command line (and scripts).
It provides these commands::
trash-put trashes files and directories.
trash-empty empty the trashcan(s).
trash-list list trashed file.
restore-trash restore a trashed file.
Usage
-----
Trash a file::
$ trash-put foo
List trashed files::
$ trash-list
2008-06-01 10:30:48 /home/andrea/bar
2008-06-02 21:50:41 /home/andrea/bar
2008-06-23 21:50:49 /home/andrea/foo
Search for a file in the trashcan::
$ trash-list | grep foo
2007-08-30 12:36:00 /home/andrea/foo
2007-08-30 12:39:41 /home/andrea/foo
Restore a trashed file::
$ restore-trash
0 2007-08-30 12:36:00 /home/andrea/foo
1 2007-08-30 12:39:41 /home/andrea/bar
2 2007-08-30 12:39:41 /home/andrea/bar2
3 2007-08-30 12:39:41 /home/andrea/foo2
4 2007-08-30 12:39:41 /home/andrea/foo
What file to restore [0..4]: 4
$ ls foo
foo
Remove all files from the trashcan::
$ trash-empty
Remove only the files that have been deleted before <days> ago::
$ trash-empy <days>
Example::
$ date
Tue Feb 19 20:26:52 CET 2008
$ trash-list
2008-02-19 20:11:34 /home/einar/today
2008-02-18 20:11:34 /home/einar/yesterday
2008-02-10 20:11:34 /home/einar/last_week
$ trash-empty 7
$ trash-list
2008-02-19 20:11:34 /home/einar/today
2008-02-18 20:11:34 /home/einar/yesterday
$ trash-empty 1
$ trash-list
2008-02-19 20:11:34 /home/einar/today
Using it as 'rm' alias
----------------------
`trash-put` accept all the options that GNU `rm` does, if you prefer (I don't)
you can set up this alias in your .bashrc::
alias rm='trash-put'
At the present the semantic of trash-put is sligthly different from the one of
`rm`, for example, while `rm` requires `-R` for deleting directories
`trash-put` does not. This may change in future.
Keep in mind that Bash aliases are used only in interactive shells, so using
this alias should not interfere with scripts that expects to use `rm`.
Installation (the easy way)
---------------------------
Requirements:
- Python 2.7
- setuptools (use `apt-get install python-setuptools` on
Debian)
Installation command::
easy_install trash-cli
Installation from sources
-------------------------
::
# grab the latest sources
wget https://github.com/andreafrancia/trash-cli/tarball/master
# unpack and install
tar xfz andreafrancia-trash-cli-xxxxxxxx.tar.gz
cd andreafrancia-trash-cli-xxxxxxxx
sudo python setup.py install
Bugs and feedback
-----------------
If you discover a bug please report it to:
https://github.com/andreafrancia/trash-cli/issues
You can reach me via email at me@andreafrancia.it . For twitter use
@andreafrancia or #trashcli
Development
-----------
Environment setup::
virtualenv env --no-site-packages
source env/bin/activate
pip install -r requirements-dev.txt
Running tests::
nosetests unit_tests # unit tests
nosetests integration_tests # integration tests
nosetests # run all tests
Profiling unit tests::
pip install gprof2dot
nosetests --with-profile --profile-stats-file stats.pf --profile-restrict=unit_tests unit_tests
gprof2dot -w -f pstats stats.pf | dot -Tsvg >| stats.svg
open stats.svg
.. |Donate| image:: https://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif
.. _Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=93L6PYT4WBN5A
Platform: UNKNOWN
|