Hopfengetraenk / DFHL

Duplicate File Hard Linker
http://jensscheffler.de/dfhl
31 stars 4 forks source link

Join groups of linked files? #3

Open temp10min opened 4 years ago

temp10min commented 4 years ago

Say, we have 4 identical files in two groups: C:\A\1.txt C:\A\2.txt C:\B\3.txt C:\B\4.txt We run DFHL on each of the two folders, so we get two hardlinked groups of two files each. Then we move one file of each group to a third folder: C:\A\1.txt C:\B\3.txt C:\C\2.txt C:\C\4.txt After running DFHL on the third folder, we end up with one unlinked file and a group of three linked files.

Would it be possible to make it so DFHL recognizes that the files are already linked, and joins the two groups into one single group of 4 linked files?

This example is simple, but the purpose of my suggestion is to avoid big scans by scanning just a smaller set of files that may be linked already.