GNOME Bugzilla – Bug 654289
File replace dialog should help user check if files are the same
Last modified: 2013-03-25 14:24:11 UTC
After a great improvement, the file replace dialog now shows file sizes and modification times for the source and the destination file, and lets the user copy the source file under a new name instead of replacing the destination file. But still it is often unclear if the files are the same. Here are some changes that would make differences easier to see: 0. Let users open the files from the dialog. 1. Show the file sizes in bytes instead of kB 2. If the files are text, audio, video or office files, show a preview as we do for image and PDF files. 3. Check if the file type is the same; this is not necessarily the case if the files have the same name. 4. If the files have extra attributes, such as dimensions for image files, show those too. 5. Show any differences in size etc in bold text. 6. If the files match in size, mod time, etc, do a diff in the background while waiting for the user to reply. (Show a status notification saying "Comparing the contents of the two files..." until the diff is complete.) 6a. If the contents are the same, say so, grey out the buttons and, after a short delay, dismiss or fade out the dialog. 6b. If the contents differ and the files are text files, show the differences in a drop-down pane. Related to those, make the file name selectable so that users can copy it for pasting.
This is related to #47893 which made the original improvement to the dialog.
Let's track these kind of checks for content equality in bug 654699. *** This bug has been marked as a duplicate of bug 654699 ***