Issue 54 in trash-cli: restore-trash overwrites existing files with no prompt

1 view
Skip to first unread message

codesite...@google.com

unread,
Oct 29, 2009, 4:24:41 PM10/29/09
to trash-c...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 54 by Christian.Oudard: restore-trash overwrites existing files
with no prompt
http://code.google.com/p/trash-cli/issues/detail?id=54

What steps will reproduce the problem?

$ mkdir testdir
$ cd testdir/
$ echo one > testfile
$ cat testfile
one
$ trash testfile
$ echo two > testfile
$ cat testfile
two
$ restore-trash
0 2009-10-29 16:12:58 /home/username/testdir/testfile
What file to restore [0..0]: 0
$ cat testfile
one


What is the expected output? What do you see instead?

The restore command overwrites files with the same name with no prompt
whatsoever.


What version of the product are you using? On what operating system?

trash 0.1.10.r55
Ubuntu Jaunty


Please provide any additional information below.

I just lost a large amount of data because of this bug. Please take this
issue seriously.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Oct 29, 2009, 4:34:51 PM10/29/09
to trash-c...@googlegroups.com

Comment #1 on issue 54 by andrea.francia: restore-trash overwrites existing

The version packaged in Ubuntu is very old.
Could you test this issue againts the latest version.

You can install the latest version with::

apt-get install python-setuptools
easy_install trash-cli

Reply all
Reply to author
Forward
0 new messages