A project that when given a folder path, generates a tree of all the files inside
Project description
Supa File Tree
A project that when given a folder path, generates a tree of all the files inside it. I created this using pure python and its base packages.
I made it because I couldn't find any python packages that did this. I intend to publish it into pip soon (whenever their website allows me to)
Project Output
I ran the program on a local copy of my tic-tac-toe project. Here is the generated output
├── assests
│ ├── null
│ │ └── null.png
│ ├── O_Assets
│ │ ├── O.png
│ │ ├── O_diag.png
│ │ ├── O_diag2.png
│ │ ├── O_hor.png
│ │ ├── O_hor2.png
│ │ ├── O_vert.png
│ │ └── O_vert2.png
│ ├── sounds
│ │ ├── Button_Sound.wav
│ │ └── license.txt
│ └── X_Assets
│ ├── X.png
│ ├── X_diag.png
│ ├── X_diag2.png
│ ├── X_hor.png
│ └── X_vert.png
├── ReadMe.txt
└── tic_tac_toe_GUI.py
Run this project
Assuming the project is being run in C:\Users\sample, run it using the following ...
python3 main.py "C:\Users\sample\SAMPLEPROJECT" --tg ".\" --o ".\"
Where
"C:\Users\sample\SAMPLEPROJECT" is the input path (REQUIRED)
--tg ".\" refers to the location of the .treeignore file (OPTIONAL)
--o ".\" refers to the location of where you want to see the output file (OPTIONAL)
How to not include some files in tree
Create .treeignore and add the file/folders you don't want to see in the tree
Then use --tg PATH and add the PATH when running the file
Example .treeignore file
.git
.gitignore
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file SupaFileTree_SainitinD-0.0.1.tar.gz.
File metadata
- Download URL: SupaFileTree_SainitinD-0.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a83271b3426ef6089a4401c778289bbeb1553ae1f3325644394fbb0f2d477d22
|
|
| MD5 |
3e14d04ac709d0b47585cc57ba6807f5
|
|
| BLAKE2b-256 |
7a91b8b450c8385b158330cba21a7e7fd136fe3a8caf63d43d4d93e281fe60c1
|
File details
Details for the file SupaFileTree_SainitinD-0.0.1-py3-none-any.whl.
File metadata
- Download URL: SupaFileTree_SainitinD-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb018e0b15b6af5d1fcbd3696eae22ee3dedc194b76b85c44b2e6b061e37254b
|
|
| MD5 |
15be2728dac1fde38dd255ce3017c7ef
|
|
| BLAKE2b-256 |
fd079db30369e17285ca5d6d6124a134df85792fc2a85ae9b6697e9086e71a8c
|