MCPcopy Create free account
hub / github.com/apache/trafficserver / check_path

Function check_path

src/traffic_layout/engine.cc:63–72  ·  view source on GitHub ↗

the function for the checking of the yaml file in the passed in path if found return the path, if not return empty string

Source from the content-addressed store, hash-verified

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
63std::string
64check_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

Callers 1

path_handlerFunction · 0.85

Calls 3

ink_warningFunction · 0.85
existsFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected