Skip to content

Projects 2026 live

Disk Map

Disk space analyzer for macOS that reports the bytes a file really occupies - iCloud placeholders as zero, hard links once, purgeable space apart from free - with a treemap, duplicate folders and a plan before anything goes to the Trash.

Swift, SwiftUI

Disk Map is a disk space analyzer for macOS, in the spirit of TreeSize, written in Swift. It exists because the number Finder shows is not free space: on my machine Finder said 7.25 TB available, and what could actually be written was 1.14 TB. The other 6.12 TB was purgeable content — evictable iCloud files, caches, local snapshots — counted as if it were already free.

So it measures what a file really occupies on disk, not its apparent size; counts iCloud placeholders as zero, since deleting them frees nothing; counts a file with several hard links once; and explains every byte it cannot attribute to a file instead of rounding the difference away. A full scan of an 8 TB disk with 11.6 million files takes about 70 seconds and 0.7 GB of memory.

Sunburst in the dark theme: one ring per folder level, arc length proportional to size The treemap coloured by how long ago each file was last modified

The same scan can be looked at as a treemap, a sunburst or an icicle, coloured by kind of file or by age. The Copies panel finds duplicate folders as well as files, including partial copies, without reading anything; Verify reads every byte before you trust a match. Nothing is deleted without a plan that shows, for every copy, which one stays and which goes to the Trash — the real Trash, so Put Back works.

The Copies panel listing a video and an installer that each exist in two places

The pictures show a made-up folder tree, not a real disk; the app renders them itself. It is open source under the MIT license and builds from source with Xcode.