Real Python Tutorials

Build a Python Directory Tree Generator for the Command Line

Build a Python Directory Tree Generator for the Command Line

In this step-by-step project, you'll create a Python directory tree generator application for your command line. You'll code the command-line interface with argparse and traverse the file system using pathlib.

Apr 14, 2021 intermediate projects

— FREE Email Series —

🐍 Python Tricks 💌

Python Tricks Dictionary Merge

🔒 No spam. Unsubscribe any time.

Not Sure Where to Start?

At Real Python you can learn all things Python from the ground up. If you’re wondering where to begin your Python journey, click the button below and we’ll give you some guidance:

Start Your Python Journey »

Real Python Logo

Loading More Tutorials…

🐍 Python Tricks 💌

Get a short & sweet Python Trick delivered to your inbox every couple of days. No spam ever. Unsubscribe any time. Curated by the Real Python team.

Python Tricks Dictionary Merge