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

Class stat

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

Source from the content-addressed store, hash-verified

19namespace Valdi {
20
21static FileStat fileStatFromCStat(bool exists, const struct stat& stat) {
22 auto isDir = S_ISDIR(stat.st_mode);
23 auto isFile = S_ISREG(stat.st_mode);
24 return FileStat(exists, isDir, isFile, static_cast<size_t>(stat.st_size));

Callers 3

statFromPathFunction · 0.70
isFileMethod · 0.70
isDirectoryMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected