I want to generate a beautiful text rendering of a file system / folder structure that does not exist. Imagine I want to propose a file system layout, I would like to express this in an easy way I can quickly type down. For instance, given an input like this:
another
folder
log.txt
final
hi.py
some
folder
file.txt
where hierarchy is simply expressed by Tabs. Could be any other encoding though.
I would like to get a beautiful output like tree could generate:
.
├── another
│ ├── folder
│ └── log.txt
├── final
├── hi.py
└── some
└── folder
└── file.txt
The goal here is to avoid typing non-type-able but beautiful characters like └── or ├──. Ideally, a web-version of this tool would be desirable.
There are a bunch of seemingly related SO posts: What tool to use to draw file tree diagram or Print Directory & File Structure with icons for representation in Markdown. However, all of them need an existing folder structure.
I think this is the tool you want: tree.nathanfriend.com . It is a simple two pane website. On the left you enter exactly what you showed as sample input (with tabs). On the right it shows you exactly what you requested as output.

What you have expressed as input is very close to YAML structure.
I'm unable to determine where you want to use the beautified result.
are you a developer bulk document generation:
are you a technical or business writer giving a presentation:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With