diff --git a/deps/ox/src/ox/fs/filesystem/filesystem.cpp b/deps/ox/src/ox/fs/filesystem/filesystem.cpp index a29cbbc5..af2ef525 100644 --- a/deps/ox/src/ox/fs/filesystem/filesystem.cpp +++ b/deps/ox/src/ox/fs/filesystem/filesystem.cpp @@ -46,6 +46,10 @@ Error FileSystem::read(FileAddress addr, std::size_t readStart, std::size_t read } } +Result> FileSystem::ls(const ox::String &dir) noexcept { + return ls(dir.c_str()); +} + Error FileSystem::remove(FileAddress addr, bool recursive) noexcept { switch (addr.type()) { case FileAddressType::Inode: diff --git a/deps/ox/src/ox/fs/filesystem/filesystem.hpp b/deps/ox/src/ox/fs/filesystem/filesystem.hpp index 23272568..8261ffea 100644 --- a/deps/ox/src/ox/fs/filesystem/filesystem.hpp +++ b/deps/ox/src/ox/fs/filesystem/filesystem.hpp @@ -46,6 +46,8 @@ class FileSystem { Result read(FileAddress addr) noexcept; + Result> ls(const ox::String &dir) noexcept; + virtual Result> ls(const char *dir) noexcept = 0; virtual Error remove(const char *path, bool recursive = false) noexcept = 0;