fn convert_path<R: Reader>(r: &R) -> Result<PathBuf, Error>