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

Method isDirectory

src/Common/PlatformFileSystem.cpp:869–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867}
868
869bool PlatformFileSystem::isDirectory(PathId id) {
870 if (!id) return false;
871
872 const std::filesystem::path dirpath = toPath(id);
873
874 std::error_code ec;
875 return !dirpath.empty() && std::filesystem::exists(dirpath, ec) && !ec &&
876 std::filesystem::is_directory(dirpath, ec) && !ec;
877}
878
879bool PlatformFileSystem::isRegularFile(PathId id) {
880 if (!id) return false;

Callers 1

checkCommandLine_Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected