Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 319 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 319 Bytes

tar-parser

Implementation of a tar archive parser written in rust using nom.

let file = std::fs::read("foo.tar")?;
let (_, entries) = tar_parser2::parse_tar(&file[..])?;
for entry in entries {
    println!("{}", entry.header.name);
}

For more robust example of listing TAR contents, see example ls.