MCPcopy Create free account
hub / github.com/Kitware/CMake / RemoveOldReplyFiles

Method RemoveOldReplyFiles

Source/cmFileAPI.cxx:161–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void cmFileAPI::RemoveOldReplyFiles()
162{
163 std::string const reply_dir = this->APIv1 + "/reply";
164 std::vector<std::string> files = this->LoadDir(reply_dir);
165 for (std::string const& f : files) {
166 if (this->ReplyFiles.find(f) == this->ReplyFiles.end()) {
167 std::string file = cmStrCat(reply_dir, '/', f);
168 cmSystemTools::RemoveFile(file);
169 }
170 }
171}
172
173bool cmFileAPI::ReadJsonFile(std::string const& file, Json::Value& value,
174 std::string& error)

Callers 1

WriteRepliesMethod · 0.95

Calls 4

LoadDirMethod · 0.95
cmStrCatFunction · 0.70
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected