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

Method LoadDir

Source/cmFileAPI.cxx:146–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146std::vector<std::string> cmFileAPI::LoadDir(std::string const& dir)
147{
148 std::vector<std::string> files;
149 cmsys::Directory d;
150 d.Load(dir);
151 for (unsigned int i = 0; i < d.GetNumberOfFiles(); ++i) {
152 std::string f = d.GetFile(i);
153 if (f != "." && f != "..") {
154 files.push_back(std::move(f));
155 }
156 }
157 std::sort(files.begin(), files.end());
158 return files;
159}
160
161void cmFileAPI::RemoveOldReplyFiles()
162{

Callers 2

RemoveOldReplyFilesMethod · 0.95
ReadClientMethod · 0.95

Calls 5

moveFunction · 0.85
push_backMethod · 0.80
LoadMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected