| 148 | } |
| 149 | |
| 150 | void touch_file (const std::string& filename) |
| 151 | { |
| 152 | if (utimes(filename.c_str(), nullptr) == -1 && errno != ENOENT) { |
| 153 | throw System_error("utimes", filename, errno); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | void remove_file (const std::string& filename) |
| 158 | { |
no test coverage detected