file_system.h
| File Path | engine/include/conjure/core/vfs/file_system.h |
| API ↗ | Files and the virtual file system |
The virtual file system interface.
Structs
| File | Description |
|---|---|
vfs::file_stat |
What a backend knows about one entry. |
Classes
| File | Description |
|---|---|
vfs::file |
A file opened for random-access reads. The size is fixed at open time; read_at may be called from several threads at once. An open handle never blocks other callers: the file can be rewritten, replaced, renamed over or removed meanwhile on every backend. |
vfs::file_system |
One storage backend. See the header comment for the path and error contract. |
Enumerations
vfs::enumerate_flags
enum class enumerate_flags : u8 {
NONE = 0,
RECURSIVE = 1 << 0,
FILES = 1 << 1,
DIRECTORIES = 1 << 2,
ALL = FILES | DIRECTORIES
};
Controls file_system::enumerate. When neither FILES nor DIRECTORIES is set, both kinds are reported, so NONE lists the direct children of a directory and RECURSIVE its whole subtree.
Type Aliases
vfs::enumerate_callback
Called once per enumerated entry with the backend-relative path of the entry.