| 82 | } |
| 83 | |
| 84 | static std::string GetIcingaDataPath(void) |
| 85 | { |
| 86 | char path[MAX_PATH]; |
| 87 | if (!SUCCEEDED(SHGetFolderPath(nullptr, CSIDL_COMMON_APPDATA, nullptr, 0, path))) |
| 88 | throw std::runtime_error("SHGetFolderPath failed"); |
| 89 | return std::string(path) + "\\icinga2"; |
| 90 | } |
| 91 | |
| 92 | static void MkDir(const std::string& path) |
| 93 | { |
no outgoing calls
no test coverage detected