}
for (j = 0; j < flist->count; j++) {
- if (!(flist->files[j]->flags & FLAG_TOP_DIR)
+ if (!(flist->files[j]->flags & FLAG_DEL_START)
|| !S_ISDIR(flist->files[j]->mode))
continue;
}
} else {
delete_file(f, S_ISDIR(mode)
- ? DEL_DIR | DEL_NO_RECURSE : 0);
+ ? DEL_DIR | DEL_RECURSE : 0);
}
deletion_count++;
}