------------------------------------------------------------------------
| 222 | |
| 223 | //------------------------------------------------------------------------ |
| 224 | void findFilesWithExt (const std::string& path, const std::string& ext, Module::PathList& pathList, |
| 225 | bool recursive = true) |
| 226 | { |
| 227 | try |
| 228 | { |
| 229 | for (auto& p : filesystem::directory_iterator (path)) |
| 230 | { |
| 231 | if (p.path ().extension () == ext) |
| 232 | { |
| 233 | pathList.push_back (p.path ().generic_string ()); |
| 234 | } |
| 235 | else if (recursive && p.status ().type () == filesystem::file_type::directory) |
| 236 | { |
| 237 | findFilesWithExt (p.path (), ext, pathList); |
| 238 | } |
| 239 | } |
| 240 | } |
| 241 | catch (...) |
| 242 | { |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | //------------------------------------------------------------------------ |
| 247 | void findModules (const std::string& path, Module::PathList& pathList) |
no test coverage detected