Skip to content

RenameDialog: Show if files are identical

Méven Car requested to merge work/identical-files into master

Compute and compare three hashes in the files : - beginning of the files - middle of the files - end of the file

I hope this is sufficient for close to perfect results. I am hesitant to add more intermediate hash, like compute an hash each QB or at chunks each 10% of the file size.

BUG: 412662 FIXED-IN: 5.73

Before: Screenshot_20200530_090131

After

Identical files:

Screenshot_20200629_080033

Files that have differences:

Screenshot_20200629_080140

Could be a base to add a form of "skip identical files" or "Overwrite non-identical files" when doing a batch copy.

Btw Bugs for this component : https://bugs.kde.org/buglist.cgi?component=Overwrite%20dialog&list_id=1750733&product=frameworks-kio&resolution=---

cc @ngraham @dfaure @broulik

Edited by Méven Car

Merge request reports