diff --git a/source/coral/files.cpp b/source/coral/files.cpp index 2d01361..ae07d07 100644 --- a/source/coral/files.cpp +++ b/source/coral/files.cpp @@ -122,8 +122,22 @@ export namespace coral { * Platform-generalized file system interface. */ struct fs { + /** + * Descriptor of the various rules that the file-system enforces over access to its files. + */ + struct access_rules { + bool can_read; + + bool can_write; + }; + virtual ~fs() {}; + /** + * Queries the file-system for its global [access_rules], returning them. + */ + virtual access_rules query_access() = 0; + /** * Attempts to read the file in the file system located at `file_path` relative, calling * `then` if it was successfully opened for reading.