qt5base-lts/tests/auto/corelib/io/qdir
Elvis Angelaccio 3f455a4b53 Introduce QDir::isEmpty()
A directory is empty when it doesn't contain files or folders.
We can exploit QDirIterator::hasNext() to check whether this is the
case. This is efficient since it doesn't list the whole folder (in the
non-empty case).

Test cases are added for both the empty and non-empty cases.

Change-Id: I0f7e26782c0f97f9c16f928dab6cae37927875d8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-01-08 16:11:34 +00:00
..
entrylist
resources/entryList
searchdir
testData
testdir Updated license headers 2016-01-21 18:55:18 +00:00
types
.gitignore
android_testdata.qrc Android: Fix QDir tests 2014-12-22 09:26:49 +01:00
qdir.pro Merge remote-tracking branch 'origin/5.6' into 5.7 2016-06-10 23:27:10 +02:00
qdir.qrc
tst_qdir.cpp Introduce QDir::isEmpty() 2017-01-08 16:11:34 +00:00