Skip to content

feat: calculate folder size on demand from Properties - #151

Merged
nextestudios merged 1 commit into
mainfrom
feature/55-folder-size
Sep 27, 2026
Merged

nextestudios merged 1 commit into
mainfrom
feature/55-folder-size

Conversation

@nextestudios

Copy link
Copy Markdown
Owner

Summary

  • Properties on a folder, drive or special folder now offers Calcular tamanho. The recursive sum runs off the UI thread (IFileSystemProvider.MeasureFolder) and shows running totals in the dialog; East/B ("Cancelar cálculo") cancels at once and keeps the partial value marked as partial; Recalcular runs it again.
  • Result lines: size (with exact bytes), files and folders counted, folders that could not be read (listed, excluded from the sum) and junctions/links not followed.
  • New shared TreeWalker (Infrastructure.Windows): one folder at a time, breadth-first, never follows junctions/symlinks/reparse points, reads metadata only. Search (feat: add recursive file search #46) now uses it too, so search and size share one descent rule (and feat: add disk usage analysis #72 can reuse it).

Testing

  • CI unit: FolderSizeJourneyTests — Properties → Calcular tamanho sums a real temp tree; a held recalculation is cancelled with Back, the dialog stays with the partial value and the "Cancelar cálculo" hint.
  • CI Windows integration: FolderSizeIntegrationTests — sum includes hidden files, excludes a junction's target (counted as a link), matching what Explorer reports as "Size".
  • Existing search tests (including the junction integration test) cover the refactor onto the walker.
  • Manual (docs/TESTING.md "Tamanho de pasta (feat: calculate folder size on demand #55)"): responsiveness on a huge folder and comparing with Explorer.

Closes #55

🤖 Generated with Claude Code

@nextestudios
nextestudios merged commit d606904 into main Sep 27, 2026
1 check passed
@nextestudios
nextestudios deleted the feature/55-folder-size branch September 27, 2026 05:24
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: calculate folder size on demand

1 participant