Searched refs:statBuf (Results 1 – 1 of 1) sorted by relevance
37 struct stat statBuf {}; in IsFile() struct38 return lstat(file.c_str(), &statBuf) == 0 ? S_ISREG(statBuf.st_mode) : false; in IsFile()43 struct stat statBuf {}; in IsDirectory() struct44 return lstat(dir.c_str(), &statBuf) == 0 ? S_ISDIR(statBuf.st_mode) : false; in IsDirectory()132 struct stat statBuf {}; in GetDirSize() struct134 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() struct144 return stat(file.c_str(), &statBuf) == 0 ? static_cast<uint64_t>(statBuf.st_size) : 0; in GetFileSize()