2022-03-03 07:56:46 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace filesystem
|
|
|
|
{
|
2022-09-03 01:23:04 -04:00
|
|
|
std::string read_file(const std::string& path);
|
|
|
|
bool read_file(const std::string& path, std::string* data, std::string* real_path = nullptr);
|
|
|
|
bool find_file(const std::string& path, std::string* real_path);
|
|
|
|
bool exists(const std::string& path);
|
2022-03-03 07:56:46 -05:00
|
|
|
|
2022-09-03 01:23:04 -04:00
|
|
|
void register_path(const std::filesystem::path& path);
|
|
|
|
void unregister_path(const std::filesystem::path& path);
|
2022-04-08 10:18:00 -04:00
|
|
|
|
2022-09-03 01:23:04 -04:00
|
|
|
std::vector<std::string> get_search_paths();
|
|
|
|
std::vector<std::string> get_search_paths_rev();
|
|
|
|
}
|