The library provides basic operations with tape archives (tar).
In Cargo.toml
:
toml
[dependencies]
tape = "0.0.1"
In main.rs
:
```rust extern crate tape;
fn main() { // tar -xf foo.tar -C bar let archive = tape::open(&Path::new("foo.tar")).unwrap(); archive.extract(&Path::new("bar")); } ```
The library is based on libtar written by Mark D. Roth.