Tech Stories Tech Brief By HackerNoon

What Building a Duplicate File Scanner for Windows Taught Me About NTFS

December 2, 2026·12 min
Episode Description from the Publisher

This story was originally published on HackerNoon at: https://hackernoon.com/what-building-a-duplicate-file-scanner-for-windows-taught-me-about-ntfs. Duplicate file detection on Windows looks simple until NTFS hard links, sparse files and junction loops break your scan. A field report with working PowerShell. Check more stories related to tech-stories at: https://hackernoon.com/c/tech-stories. You can also check exclusive content about #windows, #powershell, #ntfs, #file-systems, #duplicate-file-detection, #storage-optimization, #filesystem-race-conditions, #toctou-race-conditions, and more. This story was written by: @coolinus. Learn more about this writer by checking @coolinus's about page, and for more stories, please visit hackernoon.com. Windows has no duplicate file finder, and the obvious implementation is wrong in five places. This walks through the traps NTFS sets: sparse files that inflate your recoverable-space number, hard links that free zero bytes when deleted, junctions that turn recursion into an infinite loop, and a race condition that produces false positives. Then the five-stage funnel that actually works.

Podzilla Summary coming soon

Sign up to get notified when the full AI-powered summary is ready.

Get Free Summaries →

Free forever for up to 3 podcasts. No credit card required.

Listen to This Episode

Get summaries like this every morning.

Free AI-powered recaps of Tech Stories Tech Brief By HackerNoon and your other favorite podcasts, delivered to your inbox.

Get Free Summaries →

Free forever for up to 3 podcasts. No credit card required.