MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / isRegularFile

Method isRegularFile

src/Common/PlatformFileSystem.cpp:879–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

877}
878
879bool 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
889bool PlatformFileSystem::filesize(PathId fileId, std::streamsize *result) {
890 if (!fileId) return false;

Callers 4

checkCommandLine_Method · 0.45
loadScript_Method · 0.45
loadScriptsInInterp_Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected