| 877 | } |
| 878 | |
| 879 | bool PlatformFileSystem::isRegularFile(PathId id) { |
| 880 | if (!id) return false; |
| 881 | |
| 882 | const std::filesystem::path filepath = toPath(id); |
| 883 | |
| 884 | std::error_code ec; |
| 885 | return !filepath.empty() && std::filesystem::exists(filepath, ec) && !ec && |
| 886 | std::filesystem::is_regular_file(filepath, ec) && !ec; |
| 887 | } |
| 888 | |
| 889 | bool PlatformFileSystem::filesize(PathId fileId, std::streamsize *result) { |
| 890 | if (!fileId) return false; |
no outgoing calls
no test coverage detected