directory recursively. i'm using QDirIterator and it returns 62 files. But when i get all files using tree command, it tells me that it could found 68 files. why?
It's the qt code:
QDirIterator it("/some/path", QDir::Files, QDirIterator::Subdirectories);
while (it.hasNext()) {
files.push_back(it.next());
}
Any comment?
are you on linux? do you have hidden files?, remember that the iterator may count the "." and ".." ocurrences also, so it could be you have 4 hidden files
Обсуждают сегодня