r/coolgithubprojects • u/skepsismusic • 35m ago
Sapwood: read-only disk usage explorer as one PowerShell 7 script
AI disclosure: Sapwood was built with substantial help from coding agents, against a written specification and a large automated test suite. MIT license
It is one script, Sapwood.ps1, with a WPF window. It needs PowerShell 7.4 or later on Windows x64. Windows PowerShell 5.1 cannot run the GUI.
What it does:
- Scans a local folder or a UNC path with the current user's permissions
- Updates folder totals while the scan is still running
- Reports logical size. Allocated size is Unavailable in this edition
- Find and Keywords match names only. File contents are never read
- Opens a path in Explorer, copies a short summary, exports CSV, and saves a snapshot for compare
What it does not do: delete or modify files, send telemetry, install a service, or change the registry.
Headless mode writes one JSON summary to stdout.