Expand description
A virtual file system layer that lets us define multiple “file systems” with various backing stores, then merge them together.
Basically a re-implementation of the C library PhysFS
. The
vfs
crate does something similar but has a couple design
decisions that make it kind of incompatible with this use case:
the relevant trait for it has generic methods so we can’t use it
as a trait object, and its path abstraction is not the most
convenient.
Structs§
- Open
Options - Options for opening files
- OverlayFS
- A structure that joins several VFS’s together in order.
- PhysicalFS
- A VFS that points to a directory and uses it as the root of its file hierarchy.
- Physical
Metadata - Metadata for a physical file.
- ZipFS
- A filesystem backed by a zip file.
- ZipFile
Wrapper - A wrapper to contain a zipfile so we can implement (janky) Seek on it and such.