Expand description
File Tree Visualization
Displays the directory structure of served files with MIME types and sizes.
§Example Output
demos/realtime-transcription/
├── index.html (2.3 KB) [text/html]
├── styles.css (1.1 KB) [text/css]
├── pkg/
│ ├── realtime_wasm.js (45 KB) [text/javascript]
│ └── realtime_wasm_bg.wasm (1.2 MB) [application/wasm]
└── worker.js (5.6 KB) [text/javascript]
Total: 5 files, 1.3 MBStructs§
- File
Node - File node in the tree
- Tree
Config - Configuration for tree display
Functions§
- build_
tree - Build a file tree from a directory
- display_
tree - Display the file tree to stdout
- format_
size - Format a file size for display
- render_
tree - Render the tree to a string