28 DIR* dir = ::opendir(dirName);
31 this->m_lastError = errno;
49 this->m_dir =
reinterpret_cast<POINTER_CAST
>(dir);
61 DIR* dir =
reinterpret_cast<DIR*
>(this->m_dir);
72 return this->
read(fileNameBuffer, bufSize, dummy);
86 DIR* dir =
reinterpret_cast<DIR*
>(this->m_dir);
91 struct dirent *direntData =
NULL;
92 while ((direntData = ::readdir(dir)) !=
NULL) {
94 if (direntData->d_name[0] !=
'.') {
95 strncpy(fileNameBuffer, direntData->d_name, bufSize);
96 inode = direntData->d_ino;
101 if (direntData ==
NULL) {
106 this->m_lastError = errno;
117 return this->m_dir > 0;
122 DIR* dir =
reinterpret_cast<DIR*
>(this->m_dir);
123 (void)::closedir(dir);
129 return this->m_lastError;
133 return strerror(this->m_lastError);