done
This commit is contained in:
parent
416000fcfc
commit
89e6dd1e4a
|
@ -43,8 +43,8 @@ void listdir (const char *name) {
|
||||||
listdir(path);
|
listdir(path);
|
||||||
}
|
}
|
||||||
else if (entry->d_type == DT_DIR) {
|
else if (entry->d_type == DT_DIR) {
|
||||||
if (ht.get(&entry->d_ino)) continue;
|
//if (ht.get(&entry->d_ino)) continue;
|
||||||
ht.put(&entry->d_ino, true);
|
//ht.put(&entry->d_ino, true);
|
||||||
dir_cnt++;
|
dir_cnt++;
|
||||||
char path[4096];
|
char path[4096];
|
||||||
int len = snprintf(path, sizeof(path)-1, "%s/%s", name, entry->d_name);
|
int len = snprintf(path, sizeof(path)-1, "%s/%s", name, entry->d_name);
|
||||||
|
|
Loading…
Reference in New Issue