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

Method absolutePathFromString

valdi_core/src/valdi_core/cpp/Utils/DiskUtils.cpp:257–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257Path DiskUtils::absolutePathFromString(const std::string_view& pathString) {
258 Path path(pathString);
259 if (!path.isAbsolute()) {
260 path = currentWorkingDirectory().appending(path);
261 }
262
263 path.normalize();
264 return path;
265}
266
267} // namespace Valdi

Callers

nothing calls this directly

Calls 4

currentWorkingDirectoryFunction · 0.85
isAbsoluteMethod · 0.80
appendingMethod · 0.45
normalizeMethod · 0.45

Tested by

no test coverage detected