Hi to all I have this code:
if( !dir.cd("IrisDatabase") )
{
qWarning("Cannot find the directory, creating it...");
dir.mkdir("IrisDatabase");
qDebug("Created");
}
else
qDebug("Directory ok");
uint num = dir.entryList().count();
qDebug() << num;
QDir dir = QDir::root();
if( !dir.cd("IrisDatabase") )
{
qWarning("Cannot find the directory, creating it...");
dir.mkdir("IrisDatabase");
qDebug("Created");
}
else
qDebug("Directory ok");
uint num = dir.entryList().count();
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?
Bookmarks