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

Method isAbsolute

valdi_core/src/valdi_core/cpp/Utils/PathUtils.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool Path::isAbsolute() const {
31 if (_components.empty()) {
32 return false;
33 }
34 return _components[0] == "/";
35}
36
37Path& Path::normalize() {
38 auto it = _components.begin();

Callers 15

resolveResourceIdMethod · 0.80
runScriptMethod · 0.80
runScriptAsRemoteMethod · 0.80
canMapPathFunction · 0.80
urlToAbsolutePathMethod · 0.80
urlToAbsolutePathMethod · 0.80
guessWorkingDirectoryFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by 1

TESTFunction · 0.64