| 440 | } |
| 441 | |
| 442 | bool Path::exists(const std::string &path, bool* isdir) |
| 443 | { |
| 444 | const auto type = file_type(path); |
| 445 | if (type == S_IFDIR) |
| 446 | { |
| 447 | if (isdir) |
| 448 | *isdir = true; |
| 449 | return true; |
| 450 | } |
| 451 | if (isdir) |
| 452 | *isdir = false; |
| 453 | return type == S_IFREG; |
| 454 | } |
| 455 | |
| 456 | std::string Path::join(std::string path1, std::string path2) |
| 457 | { |
no test coverage detected