MCPcopy Create free account
hub / github.com/comaps/comaps / GetFilesByType

Method GetFilesByType

libs/platform/platform.cpp:228–240  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

226
227// static
228void Platform::GetFilesByType(std::string const & directory, unsigned typeMask, TFilesWithType & outFiles)
229{
230 FilesList allFiles;
231 GetAllFiles(directory, allFiles);
232 for (auto const & file : allFiles)
233 {
234 EFileType type;
235 if (GetFileType(base::JoinPath(directory, file), type) != ERR_OK)
236 continue;
237 if (typeMask & type)
238 outFiles.emplace_back(file, type);
239 }
240}
241
242// static
243bool Platform::IsDirectory(std::string const & path)

Callers 2

FindAllDiffsInDirectoryFunction · 0.80

Calls 2

JoinPathFunction · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected