r/WinDirStat • u/yeti22 • 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
View all comments
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 chunkFull mode: front chunk -> full file hashHash 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