| 144 | } |
| 145 | |
| 146 | std::optional<int64_t> lastWriteTime(const std::string &path) { |
| 147 | sys::fs::file_status status; |
| 148 | if (sys::fs::status(path, status)) |
| 149 | return {}; |
| 150 | return sys::toTimeT(status.getLastModificationTime()); |
| 151 | } |
| 152 | |
| 153 | std::optional<std::string> readContent(const std::string &filename) { |
| 154 | char buf[4096]; |
no outgoing calls
no test coverage detected