| 247 | |
| 248 | #ifdef WIN32 |
| 249 | fs::path GetSpecialFolderPath(int nFolder, bool fCreate) |
| 250 | { |
| 251 | WCHAR pszPath[MAX_PATH] = L""; |
| 252 | |
| 253 | if (SHGetSpecialFolderPathW(nullptr, pszPath, nFolder, fCreate)) { |
| 254 | return fs::path(pszPath); |
| 255 | } |
| 256 | |
| 257 | LogError("SHGetSpecialFolderPathW() failed, could not obtain requested path."); |
| 258 | return fs::path(""); |
| 259 | } |
| 260 | #endif |
| 261 | |
| 262 | bool RenameOver(fs::path src, fs::path dest) |
no test coverage detected