Expand description
Core filesystem listing, filtering, and sorting for f00.
Structs§
- Config
- Full runtime configuration combining listing and presentation.
- Entry
- A single filesystem entry ready for formatting.
- Ignore
Set - Compiled ignore rules for one directory tree root (the dir that held the file).
- List
Options - Options controlling which entries appear and how they are ordered.
- List
Outcome - Outcome of listing one or more path arguments.
- List
Timing - Phase timings for a single listing (milliseconds).
- Listing
- A listing produced for one path argument (or recursive tree).
- Meta
Fill - Which expensive metadata fields to populate when building an
Entry.
Enums§
- Block
Size - How to scale sizes / block counts (
--block-size). - CliSymlink
Mode - How to follow symlinks for command-line arguments.
- Color
When - Color when to emit ANSI sequences.
- Control
Chars - Whether to hide nongraphic characters as
?(-q/--show-control-chars). - Entry
Kind - High-level file kind used for display and sorting.
- Error
- Errors produced while reading the filesystem.
- GitStatus
- Optional git status annotation (filled by f00-git when enabled).
- Hyperlink
When - Hyperlink (OSC 8) emission (
--hyperlink). - Icons
When - When to show file-type icons (
--icons=WHEN). - Indicator
Style - Indicator style (
ls -F/-p/--indicator-style). - Output
Mode - How to present the listing.
- Quoting
Style - Filename quoting style (GNU
--quoting-style). - SortBy
- How entries should be ordered.
- Time
Field - Which timestamp is primary for display / sort (
ls --time). - Time
Style - Long-listing time style (
--time-style).
Constants§
- IGNORE_
FILE_ NAMES - Names of ignore files consulted when
crate::ListOptions::use_ignore_filesis set. - PARALLEL_
STAT_ THRESHOLD - Minimum number of directory children before parallel metadata is used.
Functions§
- apply_
ignore_ set - Filter entries in place using an optional ignore set.
- cmp_
name - Case-insensitive name comparison.
- cmp_
name_ with_ mode - cmp_
version - strverscmp-like natural / version comparison (
ls -v). - filter_
entries - Filter a list of entries in place according to options.
- glob_
match - Simple shell-style pattern match for
--ignore/-I/--hide(supports*and?). - list_
directory - Non-recursive directory listing.
- list_
path - List a single path: if file, return that entry alone; if dir, list children.
- list_
paths - List multiple paths, returning one Listing per successful path.
- list_
paths_ with_ errors - List paths, collecting per-argument errors instead of failing fast.
- list_
recursive - Basic recursive listing using parallel walk (jwalk) + parallel / io_uring metadata.
- load_
ignore_ set - Load ignore sets for
dir(nearest directory only — one level). - should_
show - Return true if
entryshould be shown underopts. - sort_
entries - Sort entries according to options. Directory headers keep relative order.