-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
| void SortedDirectoryIterator::scan() |
The function above suffers of the same problem mentioned in #236. I fixed the problem by wrapping the isDirectory call in a try/catch block like this:
bool isDir = false;
try
{
isDir = (*this)->isDirectory();
}
catch (...)
{
}
if (isDir)
_directories.push_back(_path.toString());
else
_files.push_back(_path.toString());
DirectoryIterator::operator++();Reactions are currently unavailable