| 364 | } |
| 365 | |
| 366 | std::vector<std::string> makeFileListFromPathList(const std::vector<std::string> &paths, |
| 367 | const std::vector<std::string> &extensions) |
| 368 | { |
| 369 | std::vector<std::string> filenames; |
| 370 | for (const auto &path : paths) { |
| 371 | if (std::filesystem::is_directory(pathFromConsoleString(path))) { |
| 372 | auto fn = listAllFilesInDirRecursively(path, extensions); |
| 373 | filenames.insert(filenames.end(), fn.begin(), fn.end()); |
| 374 | } |
| 375 | else { |
| 376 | filenames.push_back(path); |
| 377 | } |
| 378 | } |
| 379 | return filenames; |
| 380 | } |
| 381 | |
| 382 | bool ensureDir(std::string dirpath, bool raiseException) |
| 383 | { |
no test coverage detected