RFE: change "deleting all instances of a file" warning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fslint (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: fslint
TEST case:
mkdir -p /tmp/1 /tmp/2
for i in 1 2 ; do
echo test > /tmp/$i/test.txt
echo "test 2" > /tmp/$i/test2.txt
echo "test 3" > /tmp/$i/test3.txt
done
fslint-gui /tmp/1 /tmp/2
Now search for duplicate files. Mark the results with a wildcard of /tmp/* and hit the delete button.
You will see some warnings:
"Are you sure you want to delete these 6 items?"
"Are you sure you want to delete all items in this group?"
The latter warning is repeated, identicly, for each of the three groups, but provides no hints as to which files are involved. It seems that nothing is deleted until all these questions have been answered "yes".
Now, you may say, that's incredibly stupid and nobody would ever do that. Yes, you are right in this simple case. But consider where you have a list with hundreds of duplicates and maybe involving one master directory and two clone directories (that you want to check for slight variations). It's very easy to do something that isn't really intended like wildcarding for both clone directories and inadvertantly deleting all occurrences of a file in case it does not exist in the master directory. It would be great if fslint-gui did a better job of protecting the user from their own stupidity ;-)
Recommended alternative warning:
"WARNING: You are about to delete *all* occurrences of the files with md5sum $md5sum such as $samplefilename
Are you really sure you want to do this?"
description: | updated |
summary: |
- RFE: change warning before deleting all instances of a file + RFE: change "deleting all instances of a file" warning |
Changed in fslint (Ubuntu): | |
importance: | Low → Wishlist |
status: | New → Triaged |
description: | updated |
That's been implemented since 2.40 (21/07/2009)