diff options
Diffstat (limited to 'kapi')
| -rw-r--r-- | kapi/kapi/filesystem.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kapi/kapi/filesystem.hpp b/kapi/kapi/filesystem.hpp index 2b5dc827..56bb295f 100644 --- a/kapi/kapi/filesystem.hpp +++ b/kapi/kapi/filesystem.hpp @@ -80,6 +80,12 @@ namespace kapi::filesystem //! @return Nothing on success, an error on failure. auto create(std::string_view path) -> kstd::result<void>; + //! Get the status information for the file at a given path. + //! + //! @param path The path to the file to query information for. + //! @return A populated file status object on success, an error otherwise. + auto status(std::string_view path) -> kstd::result<file_status>; + //! @} } // namespace kapi::filesystem |
