14#include <lagrange/fs/api.h>
15#include <lagrange/fs/filesystem.h>
18#include <unordered_map>
25LA_FS_API std::string get_filename_extension(
const std::string& filename);
27LA_FS_API std::string get_base_dir(
const std::string& filename);
30LA_FS_API std::string get_string_ending_with(
const std::string& str,
const char* suffix);
32LA_FS_API std::string read_file_to_string(
const path& path);
33LA_FS_API std::string read_file_with_includes(
const path& search_dir,
const path& filepath);
34LA_FS_API std::string read_file_with_includes(
36 const std::unordered_map<std::string, std::string>& virtual_fs);
40#if !defined(__EMSCRIPTEN__)
41LA_FS_API path get_executable_path();
43LA_FS_API path get_executable_directory();
47LA_FS_API path get_current_working_directory();
Main namespace for Lagrange.