| 74 | } |
| 75 | |
| 76 | static size_t lastWriteTime(const fs::path& path) { |
| 77 | std::error_code ec; |
| 78 | return (size_t)duration_cast<milliseconds>( |
| 79 | std::filesystem::last_write_time(path, ec).time_since_epoch()).count(); |
| 80 | } |
| 81 | |
| 82 | static size_t lastWriteTime(const std::string& path) { |
| 83 | return lastWriteTime(fs::u8path(path)); |
no test coverage detected