fn open_meta(file_path: &PathBuf) -> Result<BufReader<fs::File>> {
        let file = fs::File::open(&file_path);
        match file {
            Ok(file) => Ok(BufReader::new(file)),
            Err(error) => return Err(anyhow!("Can't open {:?}: {:?}", file_path, error)),
        }
    }
/// Opens a meta file with the given path. Returns a buffered reader.
Opens a meta file with the given path. Returns a buffered reader.
Opens a meta file with the given path . Returns a buffered reader .
fn open_meta(file_path: &PathBuf) -> Result<BufReader<fs::File>> {
        let file = fs::File::open(&file_path);
        match file {
            Ok(file) => Ok(BufReader::new(file)),
            Err(error) => return Err(anyhow!("Can't open {:?}: {:?}", file_path, error)),
        }
    }
fn open_meta ( file_path : & PathBuf ) -> Result < BufReader < fs :: File > > { let file = fs :: File :: open ( & file_path ) ; match file { Ok ( file ) => Ok ( BufReader :: new ( file ) ) , Err ( error ) => return Err ( anyhow ! ( " " file_path error ) ) , } }
Opens a meta file with the given path.
Opens a meta file with the given path .
file_path
&PathBuf
file_path
&PathBuf