| 24 | } |
| 25 | |
| 26 | std::filesystem::path require_file(const std::filesystem::path & path, std::string_view role) { |
| 27 | if (!is_existing_file(path)) { |
| 28 | throw std::runtime_error("missing " + std::string(role) + " file: " + path.string()); |
| 29 | } |
| 30 | return std::filesystem::weakly_canonical(path); |
| 31 | } |
| 32 | |
| 33 | std::optional<std::filesystem::path> find_first_existing( |
| 34 | const std::filesystem::path & root, |
no test coverage detected