MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / zipResults

Function zipResults

src/workflow/Util.cpp:272–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272void 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
289std::string sanitizeKey(std::string key) {

Callers 1

communicateResultsMethod · 0.85

Calls 1

zipDirectoryFunction · 0.85

Tested by

no test coverage detected