GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Rudra-G-23/show-file-tree: A small, fast CLI tool to display styled file/folder trees with rich options, colors, icons, and metadata.

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
src/showfilestree
src/showfilestree
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
mkdocs.yml
mkdocs.yml
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

🌳🗃️ show-file-tree

A small, fast CLI tool to display styled file/folder trees with rich options — colors, icons, sizes, counts, sorting, filtering and Markdown export.

Perfect for quickly visualizing and documenting project structure.


img

🐦‍🔥 Documentation: https://rudra-g-23.github.io/show-file-tree/


Show File Tree PyPI License: MIT Python versions GitHub Issues GitHub PRs Repo Size Fast & Lightweight Made with Python Contributions Welcome


Quick links

  • PyPI: pip install show-file-tree
  • Author / Maintainer: Rudra Prasad Bhuyan
  • License: MIT
  • Changelog: see CHANGELOG.md (v0.0.1 — Released: 2025-09-25)

Install

Install from PyPI:

pip install show-file-tree

Install from source (development):

git clone https://github.com/YOUR_USERNAME/show-file-tree.git

cd show-file-tree

python -m venv .venv
# Linux / macOS
source .venv/bin/activate

# Windows (PowerShell)
.venv\Scripts\Activate.ps1

pip install -e ".[all]"
pip install pytest

Quick start

Print a tree of the current directory:

show-file-tree .

Limit depth and show sizes & counts:

show-file-tree  -d 2 --size --count

Export the tree to Markdown:

# creates: project-file-tree.md
show-file-tree --format md /path/to/your/project 

What it does (core features)

  • Build a hierarchical tree of files and folders (fast, memory-safe traversal).
  • Render a pleasant, readable terminal tree with icons and counts.
  • Display file/folder sizes in human-readable units (KB/MB/GB).
  • Filter by glob patterns and by modification/creation time.
  • Sort by name or size (ascending/descending).
  • Export the tree to Markdown (--format md) when desired or auto-fallback for long trees.
  • Multiple visual themes and a plain ASCII mode for compatibility.

CLI reference (main flags)

Tree structure

  • --max-depth, -d <INT> — Maximum recursion depth. Default: unlimited.
  • --gitignore / --no-gitignore — Respect .gitignore files by default.
  • --hidden — Show hidden files and directories.

Sorting

  • --sort {name,size} — Sort by name or size. Default: name.
  • --order {asc,desc} — Sorting order. Default: asc.

Output & display

  • --format {tree,md} — tree (terminal) or md (Markdown file). Default: tree.
  • --size — Show file/folder sizes.
  • --count — Show counts inside folders (e.g. src (2f, 4d)).
  • --no-icons — Disable icons / emojis for plain ASCII output.
  • --theme {colorful,monokai,light,nocolor} — Choose a color theme.

Filtering

  • --include, -i <PATTERN> — Include only paths matching glob pattern (repeatable).
  • --exclude, -e <PATTERN> — Exclude paths matching glob pattern (repeatable).
  • --mtime-after <YYYY-MM-DD> / --mtime-before <YYYY-MM-DD> — Filter by modification time.
  • --ctime-after <YYYY-MM-DD> / --ctime-before <YYYY-MM-DD> — Filter by creation time.

General

  • --version — Show package version.
  • --about — Show package information.

Markdown export behavior

When --format md is used (or when the CLI auto-falls back due to long output), a Markdown file named <rootname>-file-tree.md is created in your current working directory. The MD file includes:

  • A top heading (Hello Data Points) and a visual tree block.
  • Sizes, counts, and timestamps (if requested).
  • A short summary (top files) when --top is used.

License

show-file-tree is released under the MIT License.


Contact / support

Author: Rudra Prasad Bhuyan GitHub: https://github.com/Rudra-G-23/show-file-tree


About

A small, fast CLI tool to display styled file/folder trees with rich options, colors, icons, and metadata.

rudra-g-23.github.io/show-file-tree/

Topics

cli-toolcommand-line-utilitydeveloper-toolsdirectory-structuredirectory-treefile-explorerfile-systemfile-treefile-tree-alternativefile-tree-viewfilesystem-toolsfolder-managementproject-structurepython-clirich-clishow-file-treeterminal-visualizationtree-structuretree-view

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.