Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InteractiveComputerGraphics/PositionBasedDynamics
/ isFile
Method
isFile
Utils/FileSystem.h:260–266 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
258
}
259
260
static bool isFile(const std::string &path)
261
{
262
struct stat st;
263
if (!stat(path.c_str(), &st))
264
return S_ISREG(st.st_mode);
265
return false;
266
}
267
268
static bool isDirectory(const std::string &path)
269
{
Callers
nothing calls this directly
Calls
2
stat
Class · 0.85
c_str
Method · 0.80
Tested by
no test coverage detected