Skip to content

feat: disk usage analysis with ranked folders and files - #205

Merged
nextestudios merged 1 commit into
mainfrom
feature/72-disk-usage
Sep 27, 2026
Merged

nextestudios merged 1 commit into
mainfrom
feature/72-disk-usage

Conversation

@nextestudios

Copy link
Copy Markdown
Owner

Summary

  • North on a folder, drive (This PC) or empty space → Analisar uso do disco. The tree is read once off the UI thread through the shared TreeWalker used by folder size (feat: calculate folder size on demand #55) and search: junctions/links are never followed, unreadable folders are reported.
  • New IFileSystemProvider.AnalyzeDiskUsage returns a DiskUsage tree (per-folder recursive totals, subfolders by size, top 50 files per folder + "others" aggregate). Built bottom-up iteratively (no recursion on deep trees).
  • Progress dialog with running totals; Back cancels promptly (the walker checks the token per entry).
  • Result is a ranked menu (folders, then files, "name — size (%)"): South drills down without re-reading the disk, Back goes up a level, a file opens its folder with focus on it, "Abrir esta pasta" opens the level.

Tests

  • CI: DiskUsageJourneyTests (ranking, totals, drill down/up, open file, cancel) and FolderSizeIntegrationTests::Disk_usage_totals_match_the_folder_size_and_never_follow_a_junction (Windows, real junction).
  • Manual (docs/TESTING.md): large real drive vs Explorer, TV-distance readability.

Closes #72

🤖 Generated with Claude Code

@nextestudios
nextestudios merged commit 8320458 into main Sep 27, 2026
1 check passed
@nextestudios
nextestudios deleted the feature/72-disk-usage branch September 27, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add disk usage analysis

1 participant