Skip to content

--size

Info

  • The --size flag shows the size of files and folders in the tree.
  • Sizes are displayed in human-readable units (KB, MB, GB) for easy reference.

Usage

Usage

# Show tree with sizes
show-file-tree  --size

material-hexagon-multiple: Example

Example

├── 📁 docs
   └── readme.md
├── 📁 src
   └── main.py
└── LICENSE
├── 📁 docs (12 KB)
   └── readme.md (5 KB)
├── 📁 src (150 KB)
   └── main.py (50 KB)
└── LICENSE (1 KB)

Legend

  • Folder sizes are summed from the files inside.
  • Files show their individual size next to the name.

Tip

Tip

  • Combine with --count to see both sizes and file counts:
    show-file-tree  --size --count
    
  • Combine with --format md to export **size-annotated Markdown trees.