| 848 | } |
| 849 | |
| 850 | bool PlatformFileSystem::exists(PathId id) { |
| 851 | if (!id) return false; |
| 852 | |
| 853 | const std::filesystem::path filepath = toPath(id); |
| 854 | |
| 855 | std::error_code ec; |
| 856 | return !filepath.empty() && std::filesystem::exists(filepath, ec) && !ec; |
| 857 | } |
| 858 | |
| 859 | bool PlatformFileSystem::exists(PathId dirId, std::string_view descendant) { |
| 860 | if (!dirId || descendant.empty()) return false; |
no outgoing calls
no test coverage detected