Introduction

This program scans specified directories (or the current directory by default) to identify the top N largest subdirectories by total size and the top N subdirectories with the most files. It uses an efficient bottom-up aggregation algorithm to calculate sizes and file counts, avoiding redundant traversals.

Key Features:

  • High-Performance Scanning: Utilizes Go’s filepath.WalkDir (significantly faster than filepath.Walk) for efficient directory traversal.
  • Smart Aggregation: Implements a Bottom-Up aggregation algorithm. Unlike traditional shell scripts that often recursively recalculate or use redundant loops, this tool scans the file system only once and aggregates data from the deepest subdirectories up to the root instantly.
  • **User-Frien…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help