mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
Exception when using SortedDirectoryIterator #1926
This commit is contained in:
parent
71946d9d18
commit
9b3cb9fc41
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user