Skip to content

Commit

Permalink
Exception when using SortedDirectoryIterator #1926
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Fabijanic committed Oct 6, 2017
1 parent 71946d9 commit 9b3cb9f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Foundation/src/SortedDirectoryIterator.cpp
Expand Up @@ -78,7 +78,13 @@ void SortedDirectoryIterator::scan()
DirectoryIterator end_it;
while (*this != end_it)
{
if ((*this)->isDirectory())
bool isDir = false;
try
{
isDir = (*this)->isDirectory();
}
catch (...) {}
if (isDir)
_directories.push_back(_path.toString());
else
_files.push_back(_path.toString());
Expand Down

0 comments on commit 9b3cb9f

Please sign in to comment.