wren
Vulkan-based game engine
Loading...
Searching...
No Matches
filesystem.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <vector>
5
6#include "result.hpp"
7
8namespace wren::utils::fs {
9
10auto file_exists_in_dir(const std::filesystem::path& root,
11 const std::filesystem::path& file)
13
14auto read_file_to_string(const std::filesystem::path& path) -> std::string;
15
16auto read_file_to_bin(const std::filesystem::path& path)
17 -> std::vector<uint8_t>;
18
19} // namespace wren::utils::fs
Definition filesystem.hpp:8
auto file_exists_in_dir(const std::filesystem::path &root, const std::filesystem::path &file) -> expected< std::filesystem::path >
Definition filesystem.cpp:7
auto read_file_to_bin(const std::filesystem::path &path) -> std::vector< uint8_t >
Definition filesystem.cpp:31
auto read_file_to_string(const std::filesystem::path &path) -> std::string
Definition filesystem.cpp:24
std::expected< T, Err > expected
Definition result.hpp:49