Skip to content

hanscmd/FolderStructureViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Folder Structure Viewer

Folder Structure Viewer is a Python script that displays the hierarchical structure of a given folder and optionally exports it to a .txt file.

Currently a simple CLI tool, open for future enhancements.

βœ… Features

  • πŸ“‚ Visualizes folder and file hierarchy
  • πŸ“ Exports structure to a .txt file
  • 🚫 Handles permission and missing folder errors gracefully

πŸ“¦ Installation

Clone the repository and navigate to the project folder:

git clone https://github.com/hanscmd/FolderStructureViewer.git
cd FolderStructureViewer

No external dependencies required β€” uses Python's built-in libraries.

πŸ› οΈ Usage

Run the script using Python:

python Structure.py

Enter the full path to the folder when prompted:

Enter the full path to the folder: C:\Users\Documents\MyFolder

You’ll see the folder structure printed in the terminal, like this:

MyFolder/
β”œβ”€β”€ Subfolder1/
β”‚   └── file1.txt
β”œβ”€β”€ Subfolder2/
β”‚   └── file2.docx
└── file3.pdf

Then choose whether to export the structure to a .txt file.

πŸ§ͺ Development

You can test the script by creating a sample folder with nested files and running:

python Structure.py

Feel free to fork the repo and contribute improvements!

πŸ“„ License

This project is licensed under the MIT License β€” see the LICENSE file for details.

About

CLI tool for visualizing folder structure

Topics

Resources

License

Stars

Watchers

Forks

Languages