| 200 | } |
| 201 | |
| 202 | std::string tempFilename(const std::string& path) |
| 203 | { |
| 204 | const std::string tempdir(arbiter::getTempPath()); |
| 205 | const std::string basename(arbiter::getBasename(path)); |
| 206 | |
| 207 | return arbiter::join(tempdir, basename); |
| 208 | } |
| 209 | |
| 210 | // RAII handling of a temp file to make sure file gets deleted. |
| 211 | class TempFile |
no test coverage detected