From a85b0c21f501d1b7cea1cfc070ca67619903d9c4 Mon Sep 17 00:00:00 2001 From: kayomn Date: Mon, 20 Feb 2023 00:49:35 +0000 Subject: [PATCH] Expose IO rules on the file system interface --- source/coral/files.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/coral/files.cpp b/source/coral/files.cpp index d9ba825..181ccf9 100644 --- a/source/coral/files.cpp +++ b/source/coral/files.cpp @@ -132,6 +132,11 @@ export namespace coral { */ virtual void read_file(path const & file_path, callable 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 * `then` if it was successfully opened for writing.