| 355 | } |
| 356 | |
| 357 | void ConfigurationManager::filterOutNonExistingPaths(Files::PathContainer& dataDirs) const |
| 358 | { |
| 359 | dataDirs.erase(std::remove_if(dataDirs.begin(), dataDirs.end(), |
| 360 | [this](const std::filesystem::path& p) { |
| 361 | bool exists = std::filesystem::is_directory(p); |
| 362 | if (!exists && !mSilent) |
| 363 | Log(Debug::Warning) << "No such dir: " << p; |
| 364 | return !exists; |
| 365 | }), |
| 366 | dataDirs.end()); |
| 367 | } |
| 368 | |
| 369 | std::optional<bpo::variables_map> ConfigurationManager::loadConfig( |
| 370 | const std::filesystem::path& path, const bpo::options_description& description) const |