Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
4.8.2
-
None
-
Linux debian 3.8.3 #239 SMP PREEMPT Sat Mar 16 14:23:09 EET 2013 x86_64 GNU/Linux
Description
QDirIterator does not show hidden files, and the documentation does not mention
any flags that could be used to enable showing of hidden files.
I'd expect QDirIterator to show all files by default, and if not
this should be clearly documented!
Testcase:
#include <QtCore> #include <cstdio> int main(int argc, char *argv[]) { if (argc != 2) { fprintf(stderr,"Usage: %s <directory>\n"); exit(1); } QDirIterator it(QString(argv[1]), QDirIterator::Subdirectories); while (it.hasNext()) { it.next(); qDebug() << it.fileInfo().fileName(); } return 0; }
Run it on a directory with a hidden file, and see that it is not printed