mini-fs 0.2.2

Application filesystem to simplify reading files from both the native filesystem and file archives (tar, tar.gz & zip).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![allow(unused_variables)]

use std::path::Path;

use mini_fs::prelude::*;
use mini_fs::{LocalFs, MiniFs, TarFs};

fn main() {
    let pwd = LocalFs::pwd().unwrap();
    let tar = TarFs::open("tests/archive.tar.gz").unwrap();

    let fs = MiniFs::new().mount("/a", (pwd, tar));

    fs.open("/a/Cargo.toml").unwrap();
}