MCPcopy Create free account
hub / github.com/Tencent/libpag / Absolute

Method Absolute

test/src/utils/ProjectPath.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29std::string ProjectPath::Absolute(const std::string& relativePath) {
30 std::filesystem::path path = relativePath;
31 if (path.is_absolute()) {
32 return path;
33 }
34 static const std::string rootPath = GetRootPath() + "/";
35 return std::filesystem::path(rootPath + relativePath).lexically_normal();
36}
37
38} // namespace pag

Callers

nothing calls this directly

Calls 1

GetRootPathFunction · 0.85

Tested by

no test coverage detected