3955 dir = opendir(path); |
3955 dir = opendir(path); |
3956 if (dir == NULL) return true; |
3956 if (dir == NULL) return true; |
3957 |
3957 |
3958 /* Scan the directory */ |
3958 /* Scan the directory */ |
3959 bool result = true; |
3959 bool result = true; |
3960 char buf[sizeof(struct dirent) + MAX_PATH]; |
3960 while (result && (ptr = readdir(dir)) != NULL) { |
3961 while (result && (ptr = ::readdir(dir)) != NULL) { |
|
3962 if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) { |
3961 if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) { |
3963 result = false; |
3962 result = false; |
3964 } |
3963 } |
3965 } |
3964 } |
3966 closedir(dir); |
3965 closedir(dir); |