pub fn paths_from_directory_scan(
root: impl AsRef<Path>,
relative_pattern: Option<&str>,
) -> IngestionResult<Vec<PathBuf>>Expand description
Recursively list files under root, optionally filtered by a glob on the path relative to
root, then sort for deterministic ordering.
Intended for incremental directory batches: pair with
ingest_from_ordered_paths (or your own ordering)
when you need the same file sequence across machines and runs.
rootmust exist and be a directory.- If
relative_patternisNone, every regular file underrootis included. - If
Some, it is aglob::Patternmatched against each file path relative toroot(use forward slashes in the pattern string for portability, e.g.**/*.csv).