mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-08 18:55:36 +08:00
Ref T152, do not start loading if the model dir does not exists/is empty
This commit is contained in:
committed by
Mathew Sutcliffe
parent
725341cdbe
commit
e269ce5bd8
@@ -360,6 +360,14 @@ namespace BlackMisc
|
||||
return failed;
|
||||
}
|
||||
|
||||
bool CDirectoryUtils::existsUnemptyDirectory(const QString &testDir)
|
||||
{
|
||||
if (testDir.isEmpty()) { return false; }
|
||||
const QDir dir(testDir);
|
||||
if (!dir.exists()) { return false; }
|
||||
return !dir.isEmpty();
|
||||
}
|
||||
|
||||
QSet<QString> CDirectoryUtils::fileNamesToQSet(const QFileInfoList &fileInfoList)
|
||||
{
|
||||
QSet<QString> sl;
|
||||
|
||||
Reference in New Issue
Block a user