mtree 0.5.0

A crate for iterating through the entries of an mtree record file.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use mtree::MTree;
use std::env;
use std::error::Error;
use std::fs::File;

fn main() -> Result<(), Box<Error>> {
    let path = env::current_dir()?.join("examples/gedit.mtree");
    let mtree = MTree::from_reader(File::open(path)?);
    for entry in mtree {
        println!("{}", entry?);
    }
    Ok(())
}