| 446 | } |
| 447 | |
| 448 | TimeInfo FileInfo::lastModified() const |
| 449 | { |
| 450 | TimeInfo ti = TimeInfo::null(); |
| 451 | |
| 452 | if (exists()) { |
| 453 | fs::path path = stringToPath(FileName); |
| 454 | ti.setTime_t(to_time_t(fs::last_write_time(path))); |
| 455 | } |
| 456 | |
| 457 | return ti; |
| 458 | } |
| 459 | |
| 460 | bool FileInfo::deleteFile() const |
| 461 | { |
no test coverage detected