Overview
Thelist command recursively scans for heavy dependency folders and displays them without deleting anything. This is a safe, dry-run mode that lets you preview what’s taking up space before taking action.
Use this command to:
- See how much disk space you can reclaim
- Identify which projects have large dependency folders
- Preview before running
sweeporprune
Usage
Flags
Root path to scan. Defaults to the current directory. Scans recursively through all subdirectories.
Display help information for the list command.
Examples
List Heavy Folders in Current Directory
Scan the current directory and all subdirectories:List Heavy Folders in Specific Directory
Scan a specific directory using the--path flag:
Short Path Format
Using the short flag syntax:Color Coding
Pumu uses visual indicators to help you prioritize cleanup:| Color | Icon | Size Range | Meaning |
|---|---|---|---|
| Red | 🚨 | > 1 GB | Critical space users - highest priority for cleanup |
| Yellow | ⚠️ | 100 MB - 1 GB | Moderate space users - good candidates for cleanup |
| Green | - | < 100 MB | Minor space users - low priority |
Detected Folder Types
Thelist command searches for these dependency and build folders:
| Folder | Package Manager(s) | Typical Size |
|---|---|---|
node_modules | npm, yarn, pnpm, bun, deno | 50-500+ MB |
target | cargo (Rust) | 100-2000+ MB |
.venv | pip (Python virtual env) | 50-300+ MB |
.next | Next.js | 100-500+ MB |
.svelte-kit | SvelteKit | 50-200+ MB |
dist | Various build tools | 10-100+ MB |
build | Various build tools | 10-100+ MB |
Performance
The list command uses concurrent operations for optimal performance:- Concurrent scanning - Uses goroutines to scan multiple directories simultaneously
- Concurrent size calculation - Calculates folder sizes in parallel (max 20 concurrent operations)
- Smart path skipping - Automatically ignores system folders, caches, and version control directories
Ignored Paths
To avoid scanning irrelevant directories, pumu automatically skips:.Trash.cache,.npm,.yarn,.cargo,.rustupLibrary,AppData,Local,Roaming.vscode,.idea.git(version control)
Common Use Cases
Preview Before Sweeping
Check what will be deleted before running sweep:Audit Disk Usage
Find out which projects are consuming the most space:Check Total Reclaimable Space
See the total amount of space you can free:Scan Multiple Locations
Run list on different directories to compare:Size calculation happens concurrently for speed, but may take a few seconds for large folder trees. The progress indicator shows when calculation is complete.
Output Format
The output is presented in a clean table format:- Header - Shows the scan path and folder count
- Table - Lists each folder with its full path and size
- Summary - Shows total folders found and total reclaimable space
Related Commands
sweep- Delete the folders shown by listprune- Smart cleanup with dry-run option- Default mode - Refresh a single project directory