4182 dir = opendir(path); |
4182 dir = opendir(path); |
4183 if (dir == NULL) return true; |
4183 if (dir == NULL) return true; |
4184 |
4184 |
4185 /* Scan the directory */ |
4185 /* Scan the directory */ |
4186 bool result = true; |
4186 bool result = true; |
4187 char buf[sizeof(struct dirent) + MAX_PATH]; |
4187 while (result && (ptr = readdir(dir)) != NULL) { |
4188 while (result && (ptr = ::readdir(dir)) != NULL) { |
|
4189 if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) { |
4188 if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) { |
4190 result = false; |
4189 result = false; |
4191 } |
4190 } |
4192 } |
4191 } |
4193 closedir(dir); |
4192 closedir(dir); |