Created attachment 123051 [details]
File Already Exists dialog
Recently, I guided an occasional Plasma user when she wanted to sort out which of here files were already copied to an external USB drive and which ones were newer or missing. The following is one of the findings for potential improvement.
Look at the attached screenshots. Both files (source and destination) are identical but this not obvious at first glance.
IDEA: (at least for small files) calculate hash of the file content and display it clear to the user when those files are content-wise identical.
Created attachment 123052 [details]
File Already Exists - with Skip (when multiple files are copied at once)
In fact, if the files actually are identical by checksum comparison (or whatever), maybe we should just auto-skip without even prompting the user. What do you think?
(In reply to Nate Graham from comment #2)
> In fact, if the files actually are identical by checksum comparison (or
> whatever), maybe we should just auto-skip without even prompting the user.
> What do you think?
I wonder what should happen for the corner case when the file contents is equal but not the file modification date. I think that skipping would also be ok for that.
Relates to 421557
Git commit d712d8e70f85b79a4fdff54531727989b39e0a4e by David Faure, on behalf of Méven Car.
Committed on 25/07/2020 at 09:13.
Pushed by dfaure into branch 'master'.
RenameDialog: Show if files are identical
Compute and compare three hashes in the files :
- beginning of the files
- middle of the files
- end of the file
M +121 -12 src/widgets/renamedialog.cpp
The commit message should be FIXED-IN: 5.73