| 277 | |
| 278 | |
| 279 | bool File::Rename(const wchar *NewName) |
| 280 | { |
| 281 | // No need to rename if names are already same. |
| 282 | bool Success=wcscmp(FileName,NewName)==0; |
| 283 | |
| 284 | if (!Success) |
| 285 | Success=RenameFile(FileName,NewName); |
| 286 | |
| 287 | if (Success) |
| 288 | wcsncpyz(FileName,NewName,ASIZE(FileName)); |
| 289 | |
| 290 | return Success; |
| 291 | } |
| 292 | |
| 293 | |
| 294 | bool File::Write(const void *Data,size_t Size) |
nothing calls this directly
no test coverage detected