Skip to content

🧨Python Directory Tree Generator for the Command Line

Notifications You must be signed in to change notification settings

Python-Western-KE/Directory-Tree-Generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Directory Tree generator

💨Python app to recursively traverse through a directory and print its tree structure.

Usage - main.py [-h] [-o [OUTPUT_FILE]] [-d] [-v] [ROOT_DIR]

Options:

-h, --help shows all options and usage
-o [OUTPUT_FILE], --output-file [OUTPUT_FILE] Generate a full directory tree and save it to a file
-d, --dir-only Generate a directory only tree
-v,--version show program's version number and exit

Examples

$ python tree.py -v
RP Tree v0.1.0

$ python tree.py ./sample_dir -o hello.md

hello\
│
├──hello\
│   ├──hello.py
│   └──__init__.py
│
├──tests\
│   └──test_hello.py
│
├──LICENCE
├──README.md
├──requirements.txt
└──setup.py

$ python tree.py -h

usage: tree [-h] [-o [OUTPUT_FILE]] [-d] [-v] [ROOT_DIR]

RP Tree, a directory tree generator

positional arguments:
  ROOT_DIR              Generate a full directory tree starting at ROOT_DIR

options:
  -h, --help            show this help message and exit
  -o [OUTPUT_FILE], --output-file [OUTPUT_FILE]
                        Generate a full directory tree and save it to a file
  -d, --dir-only        Generate a directory only tree
  -v, --version         show program's version number and exit

Thanks for using RP Tree

Contributions are welcome, Thanks!💖

About

🧨Python Directory Tree Generator for the Command Line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%