Hi to all I have this code:

Qt Code:
  1. QDir dir = QDir::root();
  2. if( !dir.cd("IrisDatabase") )
  3. {
  4. qWarning("Cannot find the directory, creating it...");
  5. dir.mkdir("IrisDatabase");
  6. qDebug("Created");
  7. }
  8. else
  9. qDebug("Directory ok");
  10.  
  11. uint num = dir.entryList().count();
  12. qDebug() << num;
To copy to clipboard, switch view to plain text mode 

I would know why dir.entryList().count() returns 2 when the "IrisDatabase" directory is empty instead of 0.
I would list the number of directories contained on IrisDatabase
Where my code is wrong?