MCPcopy Create free account
hub / github.com/Snapchat/Valdi / statFromPath

Function statFromPath

valdi_core/src/valdi_core/cpp/Utils/DiskUtils.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27static FileStat statFromPath(const char* path) {
28 struct stat statStruct;
29 std::memset(&statStruct, 0, sizeof(statStruct));
30 return fileStatFromCStat(stat(path, &statStruct) >= 0, statStruct);
31}
32
33static FileStat statFromFd(int fd) {
34 struct stat statStruct;

Callers 3

openMethod · 0.85
statMethod · 0.85
removeMethod · 0.85

Calls 2

fileStatFromCStatFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected