update: Example exchanged for outputting folder structure.

This commit is contained in:
Jan Jambor 2024-10-10 14:19:12 +02:00
parent 0a33147adf
commit 81b44d8b3d

View file

@ -37,15 +37,15 @@ drawio -x -f png -b 10 -o <output>.png <file>.drawio
If you want to add an optional folder structure to your documentation, you can use the following command to generate a tree-like structure.
```bash
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
find . -type d ! -path '*/.*' | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/"
```
Example output:
```text
|-know-how
|-resources
|---diagrams
|---images
|---scripts
| |-images
| |-diagrams
| |-scripts
|-know-how
```