Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SupaFileTree-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SupaFileTree-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file SupaFileTree-0.1.0.tar.gz.

File metadata

  • Download URL: SupaFileTree-0.1.0.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

Hashes for SupaFileTree-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fc7c36ce06f44b1457fb40d45583403290866a2d31f314cbcf0a98e408aeb363
MD5 14ca6b6b074aaad6a69012e908a7a183
BLAKE2b-256 5e0b3d5b269378d21022fd6433b75656bc5ab179359b535076d5b53c7a48f48e

See more details on using hashes here.

File details

Details for the file SupaFileTree-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: SupaFileTree-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for SupaFileTree-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa37e607c0e7ade05b467a049dcc7bc2f51607f75a3e1552b416ff66d98b6a0f
MD5 401954cae26d06374313ad868c654ff6
BLAKE2b-256 3fa958d573dd3a939a4165cfd28b6226498d55aadb2edf2641e400296606b076

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page