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


Identical files:


Files that have differences:


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 :

cc @ngraham @dfaure @broulik

Edited by Méven Car

Merge request reports