pub fn resolve_files_with_container(
arrow_path: &Path,
sensor_container: &Path,
) -> Result<Vec<ResolvedFile>, Error>Expand description
Resolve Arrow file references against actual files in a sensor container.
This function reads an Arrow file, extracts sample references, and attempts to match them against actual files in the sensor container directory.
§Arguments
arrow_path- Path to the Arrow annotation filesensor_container- Path to the sensor container directory
§Returns
A list of resolved files with match information.
§Example
use edgefirst_client::format::resolve_files_with_container;
use std::path::Path;
let resolved = resolve_files_with_container(
Path::new("dataset/dataset.arrow"),
Path::new("dataset/dataset"),
)?;
for file in &resolved {
match &file.path {
Some(p) => println!("Found: {} -> {:?}", file.name, p),
None => println!("Missing: {} (expected {:?})", file.name, file.expected_path),
}
}