Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Pagghiu/SaneCppLibraries
/ stat
Class
stat
Libraries/Testing/Testing.cpp:157–157 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
155
return attr != INVALID_FILE_ATTRIBUTES && (attr & FILE_ATTRIBUTE_DIRECTORY) == 0;
156
#else
157
struct stat info;
158
return ::stat(path.getNullTerminatedNative(), &info) == 0 && S_ISREG(info.st_mode);
159
#endif
160
}
Callers
2
pathExistsFile
Function · 0.70
pathExistsDirectory
Function · 0.70
Calls
no outgoing calls
Tested by
2
pathExistsFile
Function · 0.56
pathExistsDirectory
Function · 0.56