| 458 | } |
| 459 | |
| 460 | bool FileInfo::deleteFile() const |
| 461 | { |
| 462 | try { |
| 463 | fs::path path = stringToPath(FileName); |
| 464 | return fs::remove(path); |
| 465 | } |
| 466 | catch (const fs::filesystem_error& e) { |
| 467 | std::clog << e.what() << '\n'; |
| 468 | return false; |
| 469 | } |
| 470 | } |
| 471 | |
| 472 | bool FileInfo::renameFile(const char* NewName) |
| 473 | { |
no test coverage detected