lxgui
Loading...
Searching...
No Matches
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
10namespace lxgui::utils {
11
12using string_vector = std::vector<std::string>;
13
14bool file_exists(const std::string& file);
15
16bool make_directory(const std::string& path);
17
18string_vector get_directory_list(const std::string& rel_path);
19
20string_vector get_file_list(const std::string& rel_path, bool with_path = false);
21
23get_file_list(const std::string& rel_path, bool with_path, const std::string& extensions);
24
25std::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