| 128 | } |
| 129 | |
| 130 | void cmFileAPI::WriteReplies(IndexFor indexFor) |
| 131 | { |
| 132 | bool const success = indexFor == IndexFor::Success; |
| 133 | this->ReplyIndexFor = indexFor; |
| 134 | |
| 135 | if (this->QueryExists) { |
| 136 | cmSystemTools::MakeDirectory(this->APIv1 + "/reply"); |
| 137 | this->WriteJsonFile(this->BuildReplyIndex(), success ? "index" : "error", |
| 138 | ComputeSuffixTime); |
| 139 | } |
| 140 | |
| 141 | if (success) { |
| 142 | this->RemoveOldReplyFiles(); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | std::vector<std::string> cmFileAPI::LoadDir(std::string const& dir) |
| 147 | { |
no test coverage detected