| 139 | } |
| 140 | |
| 141 | bool deleteFile(const std::string& path) |
| 142 | { |
| 143 | #ifdef _WIN32 |
| 144 | CW2T pszT(CA2W(path.c_str(), CP_UTF8)); |
| 145 | return ::DeleteFile((LPCTSTR)pszT) == TRUE; |
| 146 | #else |
| 147 | return 0 == std::remove(path.c_str()); |
| 148 | #endif |
| 149 | } |
| 150 | |
| 151 | bool deleteDirectory(const std::string& path) |
| 152 | { |
no outgoing calls
no test coverage detected