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

No comments:

Post a Comment