Skip to main content

Module tree

Module tree 

Source
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 MB

Structs§

FileNode
File node in the tree
TreeConfig
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