Skip to content

CodersVader/Directory-Tree-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Directory Tree Generator

by Arvind Rathee

Command-line application that takes a directory path as an argument, walks through its internal structure,
and generates a treelike diagram listing the contents of the directory at hand.

Project Content

Directory-Tree-Generator
   ├──img
   │   └──sample.PNG
   ├──cli.py
   ├──README.md
   └──tree.py

Requirements

Language Used: Python 3
Modules Used : pathlib and argparse

How to run the program?

  • Download the project zip file to you computer and unzip the file. Or clone this repository to your desktop.

  • Navigate to the project directory.

  • Type following command

python cli.py "path-to-folder"

Above code will generate the Directory Tree structure and display it on command line.
If needed ouput can be saved to text file by adding -f/--file argument to the command

python cli.py "path-to-folder" -f=True

Sample Output

sample_output

Made with love in India

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages