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

Function makeConfigPath

plugins/origin_server_auth/origin_server_auth.cc:69–77  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

67 * @brief Rebase a relative path onto the configuration directory.
68 */
69static String
70makeConfigPath(const String &path)
71{
72 if (path.empty() || path[0] == '/') {
73 return path;
74 }
75
76 return String(TSConfigDirGet()) + "/" + path;
77}
78
79/**
80 * @brief a helper function which loads the entry-point to region from files.

Callers 4

loadRegionMapFunction · 0.70
getMethod · 0.70
config_reloaderFunction · 0.70
TSRemapNewInstanceFunction · 0.70

Calls 3

TSConfigDirGetFunction · 0.85
StringClass · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected