pub fn scan_path(
path: impl AsRef<Path>,
options: &ScanOptions,
) -> Result<Output>Expand description
Scan a single native filesystem input through the supported high-level workflow facade.
use provenant::workflow::{scan_path, ScanOptions};
use std::fs;
use tempfile::tempdir;
let root = tempdir()?;
let root = root.path();
fs::write(root.join("README.txt"), "hello from doctest\n")?;
let output = scan_path(&root, &ScanOptions::default())?;
assert!(output.files.iter().any(|file| file.path.ends_with("README.txt")));
assert_eq!(output.headers.len(), 1);
assert!(!output.headers[0].options.contains_key("input"));