MCPcopy Create free account
hub / github.com/crownengine/crown / absolute_path

Method absolute_path

src/core/filesystem/filesystem_disk.cpp:369–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void FilesystemDisk::absolute_path(DynamicString &os_path, const char *path)
370{
371 if (path::is_absolute(path)) {
372 os_path = path;
373 return;
374 }
375
376 TempAllocator1024 ta;
377 DynamicString str(ta);
378 path::join(str, _prefix.c_str(), path);
379 path::reduce(os_path, str.c_str());
380}
381
382} // namespace crown

Callers 1

open_temporaryMethod · 0.95

Calls 4

is_absoluteFunction · 0.85
reduceFunction · 0.85
joinFunction · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected