| 576 | { |
| 577 | |
| 578 | std::string getCanonicalPath(std::string && path, const std::string & base = {}) |
| 579 | { |
| 580 | Poco::trimInPlace(path); |
| 581 | if (path.empty()) |
| 582 | throw Exception(ErrorCodes::INVALID_CONFIG_PARAMETER, "path configuration parameter is empty"); |
| 583 | if (!base.empty() && fs::path(path).is_relative()) |
| 584 | path = fs::weakly_canonical(fs::path(base) / path); |
| 585 | if (path.back() != '/') |
| 586 | path += '/'; |
| 587 | return std::move(path); |
| 588 | } |
| 589 | |
| 590 | Poco::Net::TCPServerParams::Ptr makeServerParams(const ServerSettings & server_settings) |
| 591 | { |
no test coverage detected