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

Class stat

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

Source from the content-addressed store, hash-verified

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}

Callers 4

existsMethod · 0.70
isFileMethod · 0.70
isDirectoryMethod · 0.70
statPositiveMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected