MCPcopy Create free account
hub / github.com/Snapchat/Valdi / toAbsolutePath

Method toAbsolutePath

valdi/src/valdi/standalone_runtime/InMemoryDiskCache.cpp:61–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61Path InMemoryDiskCache::toAbsolutePath(const Path& relativePath) const {
62 auto newPath = !relativePath.isAbsolute() ? _rootPath.appending(relativePath) : relativePath;
63 return newPath.normalize();
64}
65
66StringBox InMemoryDiskCache::resolveFileKey(const Path& relativePath) const {
67 return toAbsolutePath(relativePath).toStringBox();

Callers 5

TEST_PFunction · 0.45
importModuleMethod · 0.45
isJsModuleLoadedMethod · 0.45

Calls 3

isAbsoluteMethod · 0.80
appendingMethod · 0.45
normalizeMethod · 0.45

Tested by 1

TEST_PFunction · 0.36