Sunday, August 15, 2010

trash-cli 0.11.3-r315 is out


The new version of trash-cli is out!
Changes:
 - Now works also on Mac OS X
 - Fixed #55: restore-trash sets all-write permissions for the destination directory
 - Volumes detection: Now uses "df -P" output as fallback when getmnt fails.
 - Fixed #54. Now restore trash refuses to overwrite a file. Used code adapted from a patch written by Christian.Oudard

Sunday, September 13, 2009

Trash support in LXDE through trash-cli

According to this article the LXDE Desktop Enviroment got Trash support thanks the integration of the trash-cli libraries. You can do the same with the following the code:


from trashcli.trash import *
from trashcli.filesystem import *  

trashcan = GlobalTrashCan()  
try:     
     f = Path("path/to/delete")     
     trashed_file = trashcan.trash(f) 
except OSError, e:
     # handle error here 
except IOError, e:     
     # handle error here 

Tuesday, June 30, 2009

Rahul Sundaram submitted trash-cli to Fedora for a review

Fedora doesn't have (yet) packaged trash-cli. So you can't (yet) install it via yum.

Fortunately Rahul Sundaram decided to package himself trash-cli and submit the package to Fedora. The package will be included when and if it passed the QA check of Fedora reviewers.

This isn't the first time that trash-cli tries to enter in the Fedora distribution. A previous attempt dated May 2008 failed. We hope that this time it will be included.

We hopes that it will be included in Fedora packages because this will make it available to more users and more users means more feedback and more feedback will give us the opportunity to revive the project.

Saturday, March 28, 2009

Usage trend of trash-cli

This graph reports the usage trend of trash-cli as showed in the Debian popularity statistics page for trash-cli.

Thursday, March 26, 2009

A new release is out 0.11.0

This release fixes a serious bug of trash-put, now entries "." and ".." are skipped as described in the POSIX specification of the rm command.

You can install with `sudo easy_install trash-cli`, if this doesn't works because it fails to download Unipath follow the instruction in [1]

[1] http://stackoverflow.com/questions/671542/do-you-have-a-copy-of-unipath-0-2-0-tar-gz

Monday, March 23, 2009

Resolved a serious design flaws of trash-cli

A serious design flaws was corrected on trash-put command.

The problem arise when you try to trash all hidden files from a directory.
You may tempted to do something like this: `traash-put dir/.*`. Don't do this!! (the typo is intentional). If you do this with a version before the trash-cli-0.11.0.dev-r215.tar.gz you can lose some of your data.

The problem is that "dir/.*" is expanded by the shell in '.', '..', and others filenames. Before the bug fixing trash-put tries to delete the '.' and '..' directories.

Fortunately the bug was reported (thanks to garciamx) and fixed (thanks to me :-).

You can install the latest version of trash-cli with:

easy_install trash-cli