--------------------------------- Directory::GetChildrenByExt Get all children by file extension
| 395 | // Get all children by file extension |
| 396 | // |
| 397 | std::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 |
no test coverage detected