MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / exists

Method exists

source/core/StarFile_unix.cpp:148–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148bool File::exists(String const& path) {
149 struct stat st_buf;
150 int status = stat(path.utf8Ptr(), &st_buf);
151 return status == 0;
152}
153
154bool File::isFile(String const& path) {
155 struct stat st_buf;

Callers

nothing calls this directly

Calls 2

statClass · 0.70
utf8PtrMethod · 0.45

Tested by

no test coverage detected