8 releases
| 0.2.3 | Mar 26, 2026 |
|---|---|
| 0.2.2 | Mar 26, 2026 |
| 0.2.1 | May 5, 2024 |
| 0.1.3 | May 5, 2024 |
| 0.1.1 | Jan 26, 2024 |
#2012 in Filesystem
87KB
2K
SLoC
Virtual Filesystems for Rust
This crate defines and implements various virtual filesystems for Rust. It's loosely inspired by the vfs crate with
a focus on conformity with std.
virtual-fs has the following FileSystems implemented out of the box:
PhysicalFS: A read-write physical filesystem mounted at a directory. Path traversal outside the root is permitted.SandboxedPhysicalFS: A read-write physical filesystem that guards against traversal through backtracking and symbolic link traversal.MemoryFS: A read-write in-memory filesystem.RocFS: A "read-only collection" filesystem. This filesystem is similar toOverlayFS, but is read-only. This filesystem searches filesystems in mount-order for files, allowing multiple filesystems to be mounted at once.MountableFS: A read-write filesystem that supports mounting other filesystems at given paths.ScopedFS: A read-write filesystem that restricts access to a subdirectory of an inner filesystem, rejecting any path traversal that would escape the scope.ZipFS: A read-only filesystem that mounts a ZIP archive, backed by thezipcrate.TarFS: A read-only filesystem that mounts a Tarball, backed by thetarcrate.
Dependencies
~6–12MB
~229K SLoC