birkenfeld / fddf

Fast data dupe finder
Apache License 2.0
109 stars 9 forks source link

[feature request] Sort duplicates by inodes/hardlinks #23

Open topin89 opened 4 years ago

topin89 commented 4 years ago

Suppose I got all dupes in a folder and made them all hardlinks. Than I made a copy of one of the hardlinks and want all three to be the same links. With results as they are now, I would have to find all the hardlinks to all the dupes before deciding if it's worth it.

This is not a hypothetical scenario, something like that was on my PC. I solved it with python script, and that worked because there is no hardlink check on Windows.

So, how about output like that:

Size 1859 bytes:
   inode 56746546576434354:
        \\?\D:\temp\dupe1.ext
        \\?\D:\temp\dupe2.ext
   inode 6865347121004787:
        \\?\D:\temp\dupe3.ext

I don't know any tool that lists dupes like that, and that would be really helpful.

P.S.

\\?\ enables absolute paths with more than 260 bytes on Windows.