MCPcopy Create free account
hub / github.com/Singular/Singular / AbsolutePath

Function AbsolutePath

ppcc/adlib/os.cc:391–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391Str *AbsolutePath(Str *path) {
392 if (path->starts_with(PathSeparator)) {
393 return path->clone();
394 }
395 Str *result = CurrentDir();
396 return result->add(PathSeparator)->add(path);
397}
398
399Str *NormalizePath(Str *path) {
400 bool abs = path->starts_with(PathSeparator);

Callers 1

ProgramPathFunction · 0.85

Calls 4

CurrentDirFunction · 0.85
starts_withMethod · 0.80
cloneMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected