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

Class stat

src/base/fs.cpp:425–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423 return attributes != INVALID_FILE_ATTRIBUTES && !(attributes & FILE_ATTRIBUTE_DIRECTORY) ? 1 : 0;
424#else
425 struct stat sb;
426 if(stat(path, &sb) == -1)
427 return 0;
428 return S_ISREG(sb.st_mode) ? 1 : 0;

Callers 3

fs_is_fileFunction · 0.70
fs_is_dirFunction · 0.70
fs_file_timeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected