Skip to content

B3ns44d/Directory-Tree-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Generating Pretty Directory Tree Visualisation

Introduction

A Directory Tree Generator lets me visualize the relationship between files and directories, thereby making it easier to understand the positioning of files and directories. For this project, I use os library to list the files and directories within a specific directory.

  • Output
B3ns44d@zt:~/Documents/python-project/Directory_Tree_Gen$ python script.py 
Directory_Tree_Gen
|-- README.md
|-- script.py
'-- .git
    |-- config
    |-- HEAD
    |-- description
    |-- objects
    |   |-- info
    |   '-- pack
    |-- info
    |   '-- exclude
    |-- hooks
    |   |-- pre-push.sample
    |   |-- post-update.sample
    |   |-- pre-commit.sample
    |   |-- commit-msg.sample
    |   |-- pre-receive.sample
    |   |-- fsmonitor-watchman.sample
    |   |-- update.sample
    |   |-- applypatch-msg.sample
    |   |-- pre-applypatch.sample
    |   |-- pre-merge-commit.sample
    |   |-- pre-rebase.sample
    |   '-- prepare-commit-msg.sample
    |-- branches
    '-- refs
        |-- tags
        '-- heads

About

a simple directory tree generator using python

Topics

Resources

Stars

Watchers

Forks

Languages