| 184 | } |
| 185 | |
| 186 | bool removeFile(const string& path) { |
| 187 | #if defined(OS_WIN) |
| 188 | return DeleteFileA(path.c_str()) != 0; |
| 189 | #else |
| 190 | return unlink(path.c_str()) == 0; |
| 191 | #endif |
| 192 | } |
| 193 | |
| 194 | bool renameFile(const string& sourcePath, const string& destPath) { |
| 195 | return rename(sourcePath.c_str(), destPath.c_str()) == 0; |
no outgoing calls
no test coverage detected