lxgui
utils_file_system.hpp
1 #ifndef LXGUI_UTILS_FILE_SYSTEM_HPP
2 #define LXGUI_UTILS_FILE_SYSTEM_HPP
3 
4 #include "lxgui/lxgui.hpp"
5 #include "lxgui/utils.hpp"
6 
7 #include <string>
8 #include <vector>
9 
10 namespace lxgui::utils {
11 
12 using string_vector = std::vector<std::string>;
13 
14 bool file_exists(const std::string& file);
15 
16 bool make_directory(const std::string& path);
17 
18 string_vector get_directory_list(const std::string& rel_path);
19 
20 string_vector get_file_list(const std::string& rel_path, bool with_path = false);
21 
23 get_file_list(const std::string& rel_path, bool with_path, const std::string& extensions);
24 
25 std::string get_file_extension(const std::string& file);
26 
27 } // namespace lxgui::utils
28 
29 #endif
bool make_directory(const std::string &path)
string_vector get_file_list(const std::string &rel_path, bool with_path)
string_vector get_directory_list(const std::string &rel_path)
std::string get_file_extension(const std::string &file)
bool file_exists(const std::string &file)
std::vector< std::string > string_vector