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

Function makeConfigPath

plugins/experimental/access_control/config.cc:70–78  ·  view source on GitHub ↗

* @brief Rebase a relative path onto the configuration directory. */

Source from the content-addressed store, hash-verified

68 * @brief Rebase a relative path onto the configuration directory.
69 */
70static String
71makeConfigPath(const String &path)
72{
73 if (path.empty() || path[0] == '/') {
74 return path;
75 }
76
77 return String(TSConfigDirGet()) + "/" + path;
78}
79
80/**
81 * @brief parse and load a single line (base template - does nothing, see specializations for maps and vectors below)

Callers 2

loadFunction · 0.70

Calls 3

TSConfigDirGetFunction · 0.85
StringClass · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected