A WinDirStat-style disk usage visualizer in C#/.NET 6 and WPF. No third-party treemap library — the squarified treemap layout algorithm is hand-written (~100 lines of pure geometry), and disk scanning uses a single-pass FileSystemInfo enumeration instead of two separate API calls per folder.
What it does:
- Scans a folder and renders its contents as a treemap — bigger files/folders get bigger tiles
- Live progressive scanning: tiles appear and grow on screen as the scan runs, instead of freezing until it's done (this is the trick that makes WinDirStat feel instant — it isn't, it just draws while it works, so we do the same)
- Color-coded by file extension, with a legend on the side showing which color maps to which type and how much space it's using
- Click a tile to drill into a folder; every breadcrumb segment is clickable, not just "Up"
- Right-click → Show in Explorer, jumps straight to the file or folder
- Dark, terminal-styled UI, smooth fade transitions between folder levels
Why build it instead of using WinDirStat: mainly to actually understand how a squarified treemap layout works under the hood, and to have a lightweight, dependency-free tool that fits the same dark aesthetic as the rest of the DotnetGuard toolkit (KeyBox, Pulse).
Self-contained single-file .exe available, or build from source:
git clone https://github.com/dotnetguard/DotnetGuard-DiskMapper.git
cd DotnetGuard-DiskMapper
dotnet run --project DotnetGuard.DiskMap.AppSource's open, go read it: https://github.com/dotnetguard/DotnetGuard-DiskMapper