the function for the checking of the yaml file in the passed in path if found return the path, if not return empty string
| 61 | // the function for the checking of the yaml file in the passed in path |
| 62 | // if found return the path, if not return empty string |
| 63 | std::string |
| 64 | check_path(const std::string &path) |
| 65 | { |
| 66 | std::string yaml_file = Layout::relative_to(path, "runroot.yaml"); |
| 67 | if (!exists(yaml_file)) { |
| 68 | ink_warning("Unable to access runroot: '%s' - %s", yaml_file.c_str(), strerror(errno)); |
| 69 | return {}; |
| 70 | } |
| 71 | return path; |
| 72 | } |
| 73 | |
| 74 | // the function for the checking of the yaml file in passed in directory or parent directory |
| 75 | // if found return the parent path containing the yaml file |
no test coverage detected