Skip to content

Conversation

@Ananya-vastare
Copy link

treegen.py – Directory‑Tree Generator

A clean, single-file Python script that prints a directory’s file/folder hierarchy.
Supports an optional max_depth parameter to limit how deep the tree goes.
Uses Unicode connectors ├─, └─, and │ for an intuitive visual layout.
No external libraries required—pure standard library.
Perfect for quickly exploring project structures in the terminal.
Inspired by Real Python’s directory‑tree tutorial for Python CLIs :contentReference[oaicite:1]{index=1}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant