Skip to main content

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

Project description

show-file-tree

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

Installation

You can install show-file-tree using pip:

pip install show-file-tree

Quick Start

Navigate to any directory and run the command.

Default Output:

```bash
show-file-tree .
```

Display with more details like size, counts, and limited depth:

```bash
show-file-tree . -d 2 --size --count
```

Export the tree to a Markdown file:

```bash
show-file-tree /path/to/your/project --format md
```

This will create a project-file-tree.md file in your current directory.

Features & Flags

show-file-tree offers a rich set of flags to customize the output.

  • -d, --max-depth: Limit the recursion depth.
  • --gitignore / --no-gitignore: Respect or ignore .gitignore files (default: respect).
  • --hidden: Show hidden files and folders.
  • --sort {name,size}: Sort the output by name or size.
  • --order {asc,desc}: Set the sort order.
  • --format {tree,md}: Output format (default: tree). Automatically falls back to md for very large trees.
  • --size: Display file/folder sizes.
  • --count: Display file/directory counts within folders.
  • --mtime-after, --mtime-before: Filter by modification time.
  • --include, --exclude: Filter by glob patterns.
  • --no-icons: Render a plain ASCII tree.
  • --theme: Apply a color theme (colorful, monokai, light, nocolor).
  • --top N: List the top N files by size or modification time.
  • --about, --version: Show package information.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details on how to set up your development environment and submit pull requests.

Author / Maintainer

Rudra Prasad Bhuyan

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

show_file_tree-0.0.1.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

show_file_tree-0.0.1-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file show_file_tree-0.0.1.tar.gz.

File metadata

  • Download URL: show_file_tree-0.0.1.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for show_file_tree-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9ed53e7d7bc0e6b932d388e9987f7ce9fc029a6088698d8d6c75813957ea8d7a
MD5 9265e6b8b22906158e201976a2cc9eec
BLAKE2b-256 d10a2bb08c7828f79076149991693d646460413237f16127c1ef33a88c5a0539

See more details on using hashes here.

File details

Details for the file show_file_tree-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: show_file_tree-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for show_file_tree-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eac12bb8c7028008084ebd75739fef7ca9d018329d17ab77cc1bfc3d16d7a1a1
MD5 d660bfedaa047c7f58d3fd6aeee0437a
BLAKE2b-256 5f855f02d8ba3831202621ed76eabdb0a024becc4941d1c5a89454334262c895

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page