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

Function makeConfigPath

plugins/cachekey/configs.cc:264–272  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

262 * @brief Rebase a relative path onto the configuration directory.
263 */
264static String
265makeConfigPath(const String &path)
266{
267 if (path.empty() || path[0] == '/') {
268 return path;
269 }
270
271 return String(TSConfigDirGet()) + "/" + path;
272}
273
274/**
275 * @brief a helper function which loads the classifier from files.

Callers 1

loadClassifiersMethod · 0.70

Calls 3

TSConfigDirGetFunction · 0.85
StringClass · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected