Home
last modified time | relevance | path

Searched refs:statBuf (Results 1 – 1 of 1) sorted by relevance

/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/
Dfile_util.cpp37 struct stat statBuf {}; in IsFile() struct
38 return lstat(file.c_str(), &statBuf) == 0 ? S_ISREG(statBuf.st_mode) : false; in IsFile()
43 struct stat statBuf {}; in IsDirectory() struct
44 return lstat(dir.c_str(), &statBuf) == 0 ? S_ISDIR(statBuf.st_mode) : false; in IsDirectory()
132 struct stat statBuf {}; in GetDirSize() struct
134 if (stat(file.c_str(), &statBuf) == 0) { in GetDirSize()
135 totalSize += static_cast<uint64_t>(statBuf.st_size); in GetDirSize()
143 struct stat statBuf {}; in GetFileSize() struct
144 return stat(file.c_str(), &statBuf) == 0 ? static_cast<uint64_t>(statBuf.st_size) : 0; in GetFileSize()