| 105 | } |
| 106 | |
| 107 | bool directoryExists(const std::string& path) |
| 108 | { |
| 109 | Debug::Log->trace("<FileUtils> Get Directory existence at {0}", path); |
| 110 | |
| 111 | #ifdef _USE_FILESYSTEM_FALLBACK |
| 112 | if (FsAccess(path.c_str(), 0) == 0) |
| 113 | { |
| 114 | struct stat status; |
| 115 | stat(path.c_str(), &status); |
| 116 | return (status.st_mode & S_IFDIR) != 0; |
| 117 | } |
| 118 | return false; |
| 119 | #else |
| 120 | return std::filesystem::exists(path) && std::filesystem::is_directory(path); |
| 121 | #endif |
| 122 | } |
| 123 | |
| 124 | bool createDirectory(const std::string& path) |
| 125 | { |
no test coverage detected