Skip to main content

Crate f00_core

Crate f00_core 

Source
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.
IgnoreSet
Compiled ignore rules for one directory tree root (the dir that held the file).
ListOptions
Options controlling which entries appear and how they are ordered.
ListOutcome
Outcome of listing one or more path arguments.
ListTiming
Phase timings for a single listing (milliseconds).
Listing
A listing produced for one path argument (or recursive tree).
MetaFill
Which expensive metadata fields to populate when building an Entry.

Enums§

BlockSize
How to scale sizes / block counts (--block-size).
CliSymlinkMode
How to follow symlinks for command-line arguments.
ColorWhen
Color when to emit ANSI sequences.
ControlChars
Whether to hide nongraphic characters as ? (-q / --show-control-chars).
EntryKind
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).
HyperlinkWhen
Hyperlink (OSC 8) emission (--hyperlink).
IconsWhen
When to show file-type icons (--icons=WHEN).
IndicatorStyle
Indicator style (ls -F / -p / --indicator-style).
OutputMode
How to present the listing.
QuotingStyle
Filename quoting style (GNU --quoting-style).
SortBy
How entries should be ordered.
TimeField
Which timestamp is primary for display / sort (ls --time).
TimeStyle
Long-listing time style (--time-style).

Constants§

IGNORE_FILE_NAMES
Names of ignore files consulted when crate::ListOptions::use_ignore_files is 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 entry should be shown under opts.
sort_entries
Sort entries according to options. Directory headers keep relative order.

Type Aliases§

Result