Do not follow symlinks when recursing

We do not support symlinks anyway
This commit is contained in:
Daniel Molkentin 2013-03-18 14:12:25 +01:00
parent 2554a67cc7
commit 284285d441

View file

@ -25,7 +25,7 @@ QStringList FileUtils::subFoldersList(QString folder,
SubFolderListOptions options)
{
QDir dir(folder);
dir.setFilter(QDir::Dirs | QDir::NoDotAndDotDot);
dir.setFilter(QDir::Dirs | QDir::NoDotAndDotDot | QDir::NoSymLinks);
QFileInfoList list = dir.entryInfoList();
QStringList dirList;