Skip to main content

sort_files

Function sort_files 

Source
pub fn sort_files(
    inputs: &[&Path],
    opts: &SortOptions,
) -> Result<SortReport, SortError>
Expand description

Sort and merge one or more input files chronologically.

First passes are run in parallel across all inputs using Rayon; the resulting per-file indexes are merged and sorted by timestamp before a single sequential second pass writes the output.

All input files must share the same link-layer type; if they differ SortError::IncompatibleLinkType is returned.

ยงErrors

Returns SortError on I/O failure, unsupported input format, incompatible link types, or invalid slice specification.