in ingester/src/main.rs [33:43]
fn existing_path(s: &str) -> std::io::Result<PathBuf> {
let p = PathBuf::from(s);
if !std::fs::exists(&p)? {
Err(std::io::Error::new(
std::io::ErrorKind::NotFound,
"file does not exist",
))
} else {
Ok(p)
}
}