| 389 | } |
| 390 | |
| 391 | Str *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 | |
| 399 | Str *NormalizePath(Str *path) { |
| 400 | bool abs = path->starts_with(PathSeparator); |
no test coverage detected