FAQ
The trash-cli project is a opensource implementation of the
FreeDesktop.org Trash Specification that provides a command line
interface to manage the trashcan.

It's provide the following commands:
* trash-put trashes files and directories.
* trash-empty empty the trashcan(s).
* trash-list list trashed file.
* trash-restore restore a trashed file.

It is written in python and its sources are available at

http://code.google.com/p/trash-cli/source/browse/#svn/trunk

I'm the main developer and I'm not so good in Python as I would be.

Would you review my software and point out the problems you see?

The review comments can be written using the code-review facilities of
google code. You need only to double click the line of code where you
want add a comment.

Patches are also welcome.

Thank you.

Search Discussions

  • Dotan Cohen at Jan 6, 2009 at 3:30 pm
    2009/1/6 Andrea Francia
    <andrea.francia at remove-from-here.ohoihihoihoih.to-here.gmx.it>:
    The trash-cli project is a opensource implementation of the FreeDesktop.org
    Trash Specification that provides a command line interface to manage the
    trashcan.

    It's provide the following commands:
    * trash-put trashes files and directories.
    * trash-empty empty the trashcan(s).
    * trash-list list trashed file.
    * trash-restore restore a trashed file.

    It is written in python and its sources are available at

    http://code.google.com/p/trash-cli/source/browse/#svn/trunk

    I'm the main developer and I'm not so good in Python as I would be.

    Would you review my software and point out the problems you see?

    The review comments can be written using the code-review facilities of
    google code. You need only to double click the line of code where you want
    add a comment.

    Patches are also welcome.

    Thank you.
    I don't know about the code, but would there be a reason _not_ to
    alias rm, rmdir to this program? I see that it is GPL, so this would
    be a great addition to any Linux distro.

    --
    Dotan Cohen

    http://what-is-what.com
    http://gibberish.co.il

    ?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?
    ?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-??-?-?
    ?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?
    ?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?
    ?-?-?-?-?-?-?
  • Andrea Francia at Jan 6, 2009 at 7:45 pm

    Dotan Cohen wrote:
    2009/1/6 Andrea Francia
    <andrea.francia at remove-from-here.ohoihihoihoih.to-here.gmx.it>:
    The trash-cli project is a opensource implementation of the FreeDesktop.org
    I don't know about the code, but would there be a reason _not_ to
    alias rm, rmdir to this program?
    Actually the trash-put command accept all the options of GNU rm in order
    allows user doing alias rm='trash-put', but it does not accept yet some
    GNU rmdir options (--ignore-fail-on-non-empty, -p, --parents).

    A enhancement issue about accepting rmdir options was added to the tracker.
    I see that it is GPL, so this would
    be a great addition to any Linux distro.
    It's available in some distro but many distro uses a very old version,
    to gain all the advantages of the latest development version you can use:

    easy_install trash-cli

    The easy_install command is provided by the python-setuptools package.
  • Steven D'Aprano at Jan 6, 2009 at 11:18 pm

    On Tue, 06 Jan 2009 17:30:19 +0200, Dotan Cohen wrote:

    I don't know about the code, but would there be a reason _not_ to alias
    rm, rmdir to this program? I see that it is GPL, so this would be a
    great addition to any Linux distro.
    I sure as hell don't want rm to move files to the trash. If I rm
    something, I want it *gone*.

    I do want a *different* command for moving files to the trash. But
    absolutely not rm.

    Of course, if anyone wants to alias rm in their own shell, they're
    welcome to. That's what the alias command is for.



    --
    Steven

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedJan 6, '09 at 3:20p
activeJan 6, '09 at 11:18p
posts4
users4
websitepython.org

People

Translate

site design / logo © 2022 Grokbase