Comment 0 for bug 621648

Revision history for this message
Rolf Leggewie (r0lf) wrote : fslint should warn before deleting all instances of a file

Binary package hint: fslint

TEST case:

$ mkdir -p /tmp/1 /tmp/2
$ for i in 1 2 ; do echo "test" > /tmp/$i/test.txt
$ fslint-gui /tmp/1 /tmp/2

search for duplicate files. Mark the results with a wildcard of /tmp/* and hit the delete button. There is no warning that all instances of this duplicate file are going to be deleted.

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 ;-)