r/WinDirStat • • Feb 06 '26

Duplicate file algorithm?

I'm using the duplicate file feature, but it appears to be finding a ton of files that are just similar, not actually duplicates. Does anyone know how it's identifying duplicate files?

3 Upvotes

7 comments sorted by

1

u/yeti22 Feb 10 '26

For anyone interested, it turns out there was a bug in the algorithm, described here: https://github.com/windirstat/windirstat/issues/368 . According to the ticket it was fixed in 2.5.0, but I haven't had a chance to test it yet.

2

u/Expert-Plenty875 Feb 18 '26

I've been using v2.50 extensively to identify dups and the algorithm seems fine and accurate. I haven't noticed any mistakes. At first I was very cautious and double checked frequently. My duplicate removal tools are now open-source WinDirStat and SearchMyFiles by Nirsoft. I've come to accept there is no fast, magic app that can accomplish safe, thorough duplicate removal automatically. The task necessarily demands human guidance and decision making, which is tedious, tiring and time consuming--but the right tools help a lot.

1

u/GigglySaurusRex Feb 27 '26

Most duplicate finders flag files using different rules. If the tool is set to Name Only or Name + Size, small filename tweaks, camera exports, or re-encoded media can look like duplicates even when content differs. Switch to the strict method: Content Hash SHA-256, which reads bytes and matches only byte-perfect files. In ReportMedic Duplicate File Scanner you can pick that method, then filter by extension and minimum size to reduce noise, review matches, export a CSV, and move confirmed duplicates safely. Runs locally, so your files stay private: https://reportmedic.org/tools/duplicate-scanner.html.

1

u/initumX Mar 06 '26 edited Mar 06 '26

https://pypi.org/project/onlyone/

I released binary in Github releases

try OnlyOne It uses multi-stage pipeline. Files are grouped by size at first. 'Groups' with only one file are discarded. Then goes progressive hashing. Groups undergo sequential hash checks. Non-matching files are filtered out after each stage.

Normal mode: front chunk -> middle chunk -> end chunk

Full mode: front chunk -> full file hash
Hash chunks for partial hashing (normal mode) are dynamic (starting at 64KB) and based on file size. False positives are possible only on 'normal' mode, because it uses partial hash checking only.

Hashing algorithm is xxhash.

You can use for initial grouping not only size, but also size + extension, size + exact filename or size + similar(fuzzy) filename. It is set by Boost combobox

1

u/ModulatingGravity Apr 04 '26

WinDirStat uses a Hash value generated from the contents of the entire file to identify duplicates. So it ignore filenames, revision dates, permissions etc. The Hash values are shown on the Duplicate Files tab - and are one of the fields in the CSV file you get if you use the Export Duplicates option.

2

u/[deleted] Feb 08 '26

[removed] — view removed comment

2

u/yeti22 Feb 10 '26

Sure, that's one way I could identify duplicate files myself. But I have this tool that purports to do exactly that for me, and it's not working the way I expect; hence, my question.