Expand description
Recursively render a directory hierarchy using the classic tree drawing
characters (├──, └──, │ ) or output machine-readable JSON.
Supports colours, file sizes, .gitignore awareness, sorting, pruning, and
file-type icons. The render target is a generic std::io::Write so the
library can be tested without a terminal or the filesystem.
Structs§
- Flat
Formatter - Find-style flat listing (one path per line).
- Json
Formatter - Machine-readable JSON output.
- Options
- Controls how the tree is gathered and rendered.
- Tree
Formatter - Classic
├──/└──/│tree output. - Tree
Node - Tree
Stats
Enums§
Traits§
- Output
Formatter - Renders a complete
TreeNodetree into the supplied writer.
Functions§
- generate
- Convenience entry point that selects the built-in formatter based on
Options::effective_formatand delegates togenerate_with_formatter. - generate_
with_ formatter - Build the tree and hand it off to a custom
OutputFormatter.