MCPcopy Create free account
hub / github.com/Illation/ETEngine / GetChildrenByExt

Method GetChildrenByExt

Engine/source/EtCore/FileSystem/Entry.cpp:397–409  ·  view source on GitHub ↗

--------------------------------- Directory::GetChildrenByExt Get all children by file extension

Source from the content-addressed store, hash-verified

395// Get all children by file extension
396//
397std::vector<Entry*> Directory::GetChildrenByExt(std::string ext)
398{
399 std::vector<Entry*> ret;
400 for (auto e : m_pChildren)
401 {
402 if (e->GetExtension() == ext || e->GetType() == Entry::EntryType::ENTRY_DIRECTORY)
403 {
404 ret.push_back(e);
405 }
406 }
407
408 return ret;
409}
410
411//---------------------------------
412// Directory::GetChildrenRecursive

Callers 2

GetFileNameMethod · 0.80
FileSystemTest.cppFile · 0.80

Calls 2

GetExtensionMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected