Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
148
bool File::exists(String const& path) {
149
struct stat st_buf;
150
int status = stat(path.utf8Ptr(), &st_buf);
151
return status == 0;
152
}
153
154
bool File::isFile(String const& path) {
155
struct stat st_buf;
Callers
nothing calls this directly
Calls
2
stat
Class · 0.70
utf8Ptr
Method · 0.45
Tested by
no test coverage detected