Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ranges in restore-trash #22

Closed
Ampelbein opened this issue Aug 2, 2013 · 1 comment
Closed

Support ranges in restore-trash #22

Ampelbein opened this issue Aug 2, 2013 · 1 comment

Comments

@Ampelbein
Copy link

When restoring files, it would be nice if restore-trash supported a range of files to restore. Like this:

(saucy)andreas@incubator:~$ restore-trash
0 2013-08-02 12:50:39 /home/andreas/temp/2
1 2013-08-02 12:52:50 /home/andreas/temp/4
2 2013-08-02 12:52:50 /home/andreas/temp/3
3 2013-08-02 12:50:39 /home/andreas/temp/1
What file to restore [0..3]: 1-3

Now the files 1,2 and 3 would be restored. Instead, restore-trash crashes:

Traceback (most recent call last):
File "/usr/bin/restore-trash", line 9, in
load_entry_point('trash-cli==0.12.7', 'console_scripts', 'restore-trash')()
File "/usr/lib/python2.7/dist-packages/trashcli/cmds.py", line 20, in restore
input = raw_input
File "/usr/lib/python2.7/dist-packages/trashcli/trash.py", line 547, in run
index = int(index)
ValueError: invalid literal for int() with base 10: '1-3'
(saucy)andreas@incubator:~$

@andreafrancia
Copy link
Owner

I don't think this is a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants