comparison include/core/filesystem.h @ 11:fc1bf97c528b

*: use C++11 standard I've been meaning to do this for a while, but I didn't want to reimplement the filesystem code. Now we are on C++11 and most compilers from the past 5 centuries should support this now
author Paper <mrpapersonic@gmail.com>
date Sun, 17 Sep 2023 06:14:30 -0400
parents 5c0397762b53
children 2743011a6042
comparison
equal deleted inserted replaced
10:4b198a111713 11:fc1bf97c528b
1 #ifndef __core__filesystem_h 1 #ifndef __core__filesystem_h
2 #define __core__filesystem_h 2 #define __core__filesystem_h
3 #include <filesystem> 3 #include <string>
4 std::filesystem::path get_config_path(void); 4
5 namespace Filesystem {
6
7 bool CreateDirectories(std::string path);
8 bool Exists(std::string path);
9 std::string GetParentDirectory(std::string path);
10 std::string GetConfigPath();
11
12 }
13
5 #endif // __core__filesystem_h 14 #endif // __core__filesystem_h