Structs§
Enums§
- Classify
Mode - File-type classify mode (for -F / –classify).
- Color
Mode - When to emit ANSI colour escapes.
- Hyperlink
Mode - When to emit hyperlinks.
- Indicator
Style - What indicators to append to names.
- Output
Format - Output layout.
- Quoting
Style - Quoting style for file names.
- SortBy
- How to sort directory entries.
- Time
Field - Which timestamp to show / sort by.
- Time
Style - How to format timestamps in long listing.
Functions§
- atty_
stdout - Check if stdout is a TTY.
- collect_
entries - Collect entries for a directory into a Vec (for testing).
- format_
blocks - Format blocks for the -s option (in 1K units by default, or –si / -h).
- format_
permissions - Format permission bits as
drwxr-xr-x(10 chars). - format_
size - Format a file size for display.
- format_
time - Format a unix timestamp for long listing.
- glob_
match - Simple glob matching (supports * and ?).
- ls_dir
- List a single directory to the provided writer.
- ls_main
- Top-level entry: list the given paths.
- print_
comma - quote_
name - Quote a filename according to the configured quoting style.
- read_
entries - Read entries from a directory path.
- render_
dir - Render full ls_dir output to a String (for testing).
- render_
long - Render long format lines to a String (for testing).
- render_
single_ column - Render single-column output to a String (for testing).