[−][src]Crate mini_fs
mini-fs is a filesystem abstraction layer.
Currently supported features include:
- Access to the local (native) filesystem.
- In-memory filesystems.
- Tar, tar.gz, and Zip archives.
- Logically merging filesystems (useful for overriding some files)
Merging example
This feature is useful when you want to override some files from another location:
use std::path::Path; let a = Local::new("data/"); // |- example.txt let b = Tar::open("archive.tar.gz")?; // |- example.txt // |- hello.txt let files = MiniFs::new().mount("/files", (a, b)); assert!(files.open(Path::new("/files/example.txt")).is_ok()); // this "example.txt" is from "a" assert!(files.open(Path::new("/files/hello.txt")).is_ok());
Re-exports
pub use tar::Tar; |
pub use zip::Zip; |
Modules
err | Error types. |
tar | Storage from a tarball. |
zip | Storage from a Zip file. |
Structs
File | File you can Read and write to. |
Local | Local (native) filesystem. |
MiniFs | Virtual filesystem. |
Ram | In-memory file store. |
Traits
Store | Generic filesystem abstraction. |