| 178 | } |
| 179 | |
| 180 | void EnsureDirExists(const std::string &filepath) { |
| 181 | auto parent = StripFileName(filepath); |
| 182 | if (parent.length()) EnsureDirExists(parent); |
| 183 | // clang-format off |
| 184 | |
| 185 | #ifdef _WIN32 |
| 186 | (void)_mkdir(filepath.c_str()); |
| 187 | #else |
| 188 | mkdir(filepath.c_str(), S_IRWXU|S_IRGRP|S_IXGRP); |
| 189 | #endif |
| 190 | // clang-format on |
| 191 | } |
| 192 | |
| 193 | std::string AbsolutePath(const std::string &filepath) { |
| 194 | // clang-format off |
no test coverage detected