| 367 | } |
| 368 | |
| 369 | void 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 |
no test coverage detected