Tech Stories Tech Brief By HackerNoon podcast

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

0:00
12:20
Spol 15 sekunder tilbage
Spol 15 sekunder frem

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.

Flere episoder fra "Tech Stories Tech Brief By HackerNoon"