tar 0.3.3

A Rust implementation of a TAR file reader and writer. This library does not currently handle compression, but it is abstract over all I/O readers and writers. Additionally, great lengths are taken to ensure that the entire contents are never required to be entirely resident in memory all at once.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate tar;

fn main() {
    let ar = tar::Archive::new(std::fs::File::open("foo.tar").unwrap());
    for f in ar.entries().unwrap() {
        let f = f.unwrap();
        println!("name: {:?}", f.header().path());
        println!("{:?}", f.header().ustar);
        println!("{:?}", f.header().ustar_version);
        println!("{:?}", f.header().entry_type());
        println!("{:?}", f.header().size());
    }
}