diff --git a/deps/ox/src/ox/fs/filesystem/directory.hpp b/deps/ox/src/ox/fs/filesystem/directory.hpp index 94a4891d..28340d6b 100644 --- a/deps/ox/src/ox/fs/filesystem/directory.hpp +++ b/deps/ox/src/ox/fs/filesystem/directory.hpp @@ -11,7 +11,7 @@ #include #include #include -#include +#include namespace ox { diff --git a/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp b/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp index 092980bd..e34bd0cc 100644 --- a/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp +++ b/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp @@ -21,6 +21,10 @@ PassThroughFS::PassThroughFS(const char *dirPath) { PassThroughFS::~PassThroughFS() { } +std::string PassThroughFS::basePath() { + return m_path.string(); +} + Error PassThroughFS::mkdir(const char *path, bool recursive) { bool success = false; const auto p = m_path / stripSlash(path); diff --git a/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp b/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp index 712222ce..fee21ca8 100644 --- a/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp +++ b/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp @@ -11,6 +11,7 @@ #if __has_include() #include +#include #include "filesystem.hpp" @@ -28,6 +29,8 @@ class PassThroughFS: public FileSystem { ~PassThroughFS(); + [[nodiscard]] std::string basePath(); + Error mkdir(const char *path, bool recursive = false) override; Error move(const char *src, const char *dest) override; diff --git a/deps/ox/src/ox/fs/filesystem/types.hpp b/deps/ox/src/ox/fs/filesystem/types.hpp index 3f526b9a..aaf27efe 100644 --- a/deps/ox/src/ox/fs/filesystem/types.hpp +++ b/deps/ox/src/ox/fs/filesystem/types.hpp @@ -8,7 +8,7 @@ #pragma once -#include +#include namespace ox {