| 196 | } |
| 197 | |
| 198 | bool isDirectoryWritable(const string& path) { |
| 199 | if (!directoryExists(path) && !createDirectory(path)) { return false; } |
| 200 | |
| 201 | const string testPath = path + AF_PATH_SEPARATOR + "test"; |
| 202 | if (!ofstream(testPath).is_open()) { return false; } |
| 203 | removeFile(testPath); |
| 204 | |
| 205 | return true; |
| 206 | } |
| 207 | |
| 208 | #ifndef NOSPDLOG |
| 209 | string& getCacheDirectory() { |
no test coverage detected