Expose IO rules on the file system interface

This commit is contained in:
kayomn 2023-02-20 00:49:35 +00:00
parent 3e4753f985
commit a85b0c21f5
1 changed files with 5 additions and 0 deletions

View File

@ -132,6 +132,11 @@ export namespace coral {
*/ */
virtual void read_file(path const & file_path, callable<void(file_reader &)> const & then) = 0; virtual void read_file(path const & file_path, callable<void(file_reader &)> const & then) = 0;
/**
* Returns the [io_rules] that this file system interface abides by.
*/
virtual io_rules rules() = 0;
/** /**
* Attempts to write the file in the file system located at `file_path` relative, calling * Attempts to write the file in the file system located at `file_path` relative, calling
* `then` if it was successfully opened for writing. * `then` if it was successfully opened for writing.