Crate vfs [−] [src]
Virtual file system abstraction
The virtual file system abstraction generalizes over file systems and allow using different filesystem implementations (i.e. an in memory implementation for unit tests)
A virtual filesystem consists of three basic types
- Paths - locations in the filesystem
- File - actual file contents (think inodes)
- Metadata - metadata information about paths
This crate currently has the following implementations:
- PhysicalFS - the actual filesystem of the underlying OS
- MemoryFS - an ephemeral in-memory implementation (intended for unit tests)
Reexports
pub use physical::PhysicalFS; |
pub use memory::MemoryFS; |
Modules
memory |
An ephemeral in-memory file system, intended mainly for unit tests |
physical |
A "physical" file system implementation using the underlying OS file system |
util |
Utility functions for working with the virtual file systems |
Structs
OpenOptions |
Options for opening files |
Traits
VFS |
An abstract virtual file system |
VFile |
An abstract file object |
VMetadata |
File metadata abstraction |
VPath |
A abstract path to a location in a filesystem |
Functions
resolve |
Resolve the path relative to the given base returning a new path |