# tobi/disktree

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/tobi-disktree).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

4,033 stars · 262 forks · Rust · MIT

## Links

- GitHub: https://github.com/tobi/disktree
- awesome-repositories: https://awesome-repositories.com/repository/tobi-disktree.md

## Description

Disktree is a native desktop application written in Rust that draws a disk as a treemap. Every directory becomes a nested rectangle sized by its real disk cost and colored by kind of data, so the largest items stand out. It counts usage by allocated blocks, tallies each hardlinked inode once, skips symlinks and stops at nested mount boundaries. It is also a cleanup tool: you mark items, review them, and move them to the trash or delete them.

Deletion is a two-step process. Marking only flags items and shows the projected free space. Nothing is removed until you confirm in a review list, after which the disk is rescanned to report the space actually gained. Safeguards refuse to remove the filesystem root, the home directory, mount points, system trees and paths outside the scan root, and names are never passed through a shell.

Scanning runs on a configurable pool of worker threads, and results stream into the view as they arrive. A top-level overview appears early while live counters track files, directories, bytes, errors and elapsed time. Widening a scan to a larger root, up to the whole disk, reuses subtrees already measured. Remote machines can be scanned over SSH: a checksum-verified, read-only helper is uploaded without sudo and feeds the same treemap view.

Within the treemap you can zoom with the scroll wheel, move through directories with the keyboard, breadcrumbs and back/forward history, and switch the metric between size, file count and last-write age. Toggles cover hidden files and apparent versus allocated size. An inspector panel shows size, share, file count, last write time and git status for the selection. The repository includes packaging for Linux desktop launchers and macOS app bundles, a headless scanner install for servers, and scripts for benchmarking worker counts and testing mount detection and SSH access.

## Tags

### Graphics & Multimedia

- [Treemap Visualizations](https://awesome-repositories.com/f/graphics-multimedia/treemap-visualizations.md) — Draws every directory as a nested treemap sized by real disk cost and colored by kind of data, showing what fills a volume.
- [Treemap Navigation](https://awesome-repositories.com/f/graphics-multimedia/treemap-visualizations/treemap-navigation.md) — Supports scroll-wheel zoom toward the pointer, keyboard movement, breadcrumb sibling menus and back and forward history through directories. ([source](https://github.com/tobi/disktree/blob/main/README.md))
- [Zoom and Navigation Controls](https://awesome-repositories.com/f/graphics-multimedia/treemap-visualizations/zoom-and-navigation-controls.md) — Offers scroll-wheel zoom toward the pointer, keyboard movement, breadcrumbs and back/forward history for moving through nested directories in the treemap. ([source](https://github.com/tobi/disktree#readme))

### Development Tools & Productivity

- [Parallel Directory Scanning](https://awesome-repositories.com/f/development-tools-productivity/parallel-directory-scanning.md) — Walks the filesystem with a configurable pool of worker threads and streams results, with a script to benchmark the fastest worker count.
- [Disk Space Analysis](https://awesome-repositories.com/f/development-tools-productivity/disk-space-management/disk-space-analysis.md) — Marks space that could be reclaimed with hatching on the treemap so large removable areas stand out. ([source](https://github.com/tobi/disktree/blob/main/README.md))

### Operating Systems & Systems Programming

- [Trash-Based Deletions](https://awesome-repositories.com/f/operating-systems-systems-programming/file-and-directory-deletion/trash-based-deletions.md) — Opens a review list of marked items, moves them to the trash or deletes them permanently after confirmation, then rescans to report space gained. ([source](https://github.com/tobi/disktree/blob/main/AGENTS.md))
- [Filesystem Scanners](https://awesome-repositories.com/f/operating-systems-systems-programming/system-administration-maintenance/file-system-management/file-systems/filesystem-scanners.md) — Runs a multi-threaded filesystem scan that counts allocated blocks, tallies hardlinked inodes once and stops at mount boundaries.

### Security & Cryptography

- [Protected Path Deletion Guards](https://awesome-repositories.com/f/security-cryptography/protected-path-deletion-guards.md) — Refuses to remove the filesystem root, home, mount points, system trees and paths outside the scan root, never invoking a shell. ([source](https://github.com/tobi/disktree#readme))

### System Administration & Monitoring

- [Disk Cleanup Tools](https://awesome-repositories.com/f/system-administration-monitoring/disk-cleanup-tools.md) — Lets users mark files and folders, review them, then move them to the trash or delete them while tracking the space reclaimed.
- [Disk Usage Analyzers](https://awesome-repositories.com/f/system-administration-monitoring/disk-usage-analyzers.md) — Counts allocated blocks the way du does, tallies each hardlinked inode once, skips symlinks and stops at nested mount boundaries. ([source](https://github.com/tobi/disktree#readme))
- [Block-Based Disk Usage Counting](https://awesome-repositories.com/f/system-administration-monitoring/block-based-disk-usage-counting.md) — Counts allocated blocks like du, tallies each hardlinked inode once and skips symlinks so reported sizes match actual disk consumption.
- [Deletion Marking](https://awesome-repositories.com/f/system-administration-monitoring/deletion-marking.md) — Lets users mark files or directories for removal, absorbs nested marks and shows the projected free space before anything is deleted. ([source](https://github.com/tobi/disktree/blob/main/README.md))
- [Disk Usage Metric Switching](https://awesome-repositories.com/f/system-administration-monitoring/disk-usage-metric-switching.md) — Switches the treemap between size, file count and last-write age, with toggles for hidden files and apparent size, recoloring tiles accordingly. ([source](https://github.com/tobi/disktree#readme))
- [Incremental Scan Reuse](https://awesome-repositories.com/f/system-administration-monitoring/incremental-scan-reuse.md) — Widen the scan from a subdirectory to the entire disk, reusing the already-measured tree so only newly reached areas are read. ([source](https://github.com/tobi/disktree#readme))
- [Live Scan Progress Reporting](https://awesome-repositories.com/f/system-administration-monitoring/live-scan-progress-reporting.md) — Shows live counts of files, directories, bytes, errors and elapsed time, with a top-level overview painted before the full scan finishes. ([source](https://github.com/tobi/disktree#readme))
- [Reclaimable Space Scanners](https://awesome-repositories.com/f/system-administration-monitoring/reclaimable-space-scanners.md) — Shows the volume's free space now and projected after marked items are removed, then rescans to confirm the space actually reclaimed. ([source](https://github.com/tobi/disktree/blob/main/README.md))
- [Remote Disk Scanning over SSH](https://awesome-repositories.com/f/system-administration-monitoring/remote-disk-scanning-over-ssh.md) — Uploads a checksum-verified read-only helper over SSH without sudo and streams its disk usage results into the same treemap view. ([source](https://github.com/tobi/disktree/blob/main/README.md))

### DevOps & Infrastructure

- [Remote Helper Binary Deployments](https://awesome-repositories.com/f/devops-infrastructure/remote-helper-binary-deployments.md) — Uploads a checksum-verified read-only scanner helper to remote hosts over SSH without sudo and streams its results back to the local view.
- [Deletion Safety Guards](https://awesome-repositories.com/f/devops-infrastructure/synchronization-safety-guards/deletion-safety-guards.md) — Rejects the filesystem root, home, mount points, system trees and paths outside the scan root, and never passes names through a shell.

### Networking & Communication

- [Remote Disk Usage Scanners](https://awesome-repositories.com/f/networking-communication/ssh-remote-sessions/remote-disk-usage-scanners.md) — Uploads a checksum-verified read-only helper over SSH without sudo and streams remote disk usage into the same treemap view.
