#include "../../../../NameSpaceDef/namespaces.hpp"
#include "../../lib/logging/AyonLogger.hpp"
#include <algorithm>
#include <regex>
#include <string>
#include <unordered_map>
Go to the source code of this file.
|
| YNPUT_TOOL_AYON_NAMESPACE_OPEN std::string | rootReplace (const std::string &rootLessPath, const std::unordered_map< std::string, std::string > &siteRoots) |
| | allows to replace the {root[xxx]} key from an Ayon resolver endpoint with the local root overwrites More...
|
| |
◆ rootReplace()
| YNPUT_TOOL_AYON_NAMESPACE_OPEN std::string rootReplace |
( |
const std::string & |
rootLessPath, |
|
|
const std::unordered_map< std::string, std::string > & |
siteRoots |
|
) |
| |
allows to replace the {root[xxx]} key from an Ayon resolver endpoint with the local root overwrites
- Parameters
-
| rootLessPath | a path that needs its root replaces e.g {root[work]}/file/path.ext |
| siteRoots | a list of roots availalbe on the system e.g {work=/path/to, temp=/path/to} |
- Returns
- input string with the correct root replace. the {root[key]} will be removed