| 270 | } |
| 271 | |
| 272 | void zipResults(const openstudio::path& dirPath) { |
| 273 | |
| 274 | namespace fs = openstudio::filesystem; |
| 275 | |
| 276 | if (fs::exists(dirPath) && fs::is_directory(dirPath)) { |
| 277 | zipDirectory(dirPath, dirPath / "data_point.zip"); |
| 278 | } |
| 279 | |
| 280 | // TODO: the reports folder is not inside the run/ directory though? |
| 281 | // zip up only the reports folder |
| 282 | auto reportDirPath = dirPath / "reports"; |
| 283 | if (fs::exists(reportDirPath) && fs::is_directory(reportDirPath)) { |
| 284 | zipDirectory(reportDirPath, dirPath / "data_point_reports.zip"); |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | // TODO: investigate removing this. `OSRunner::registerValue` already calls `OSRunner::cleanValueName`, perhaps we just reuse that |
| 289 | std::string sanitizeKey(std::string key) { |
no test coverage detected