** Description changed:

  Binary package hint: fslint
  
  TEST case:
  
- $ mkdir -p /tmp/1 /tmp/2
- $ for i in 1 2 ; do echo "test" > /tmp/$i/test.txt;done
- $ fslint-gui /tmp/1 /tmp/2
+  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
  
- 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 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?"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/621648

Title:
  RFE: change "deleting all instances of a file" warning

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fslint/+bug/621648/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to