Here is an example of a directory tree generator you can use for inspiration:
- tree command: Wikipedia article about the recursive directory listing command
- tree: Homebrew install for macOS Display directories as trees (with optional color/HTML output)
Here are resources that you can use to build your directory tree generator:
- os Module: Miscellaneous operating system interfaces
- sys Module: System-specific parameters and functions
- shutil Module: High-level file operations
- Working With Files in Python: Real Python article
- argparse Module: Parser for command-line options, arguments and sub-commands
- How to Build Command Line Interfaces in Python With argparse: Real Python article
- click: A Python package for creating beautiful command line interfaces
- docopt: Command-line interface description language
- colorama: Cross-platform colored terminal text
- pillow: The friendly PIL (Python Imaging Library) fork