Commit 76f7ab6c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Revert "FsDiscoverer: Don't crash when a root folder can't be found anymore"

This reverts commit 9976a6c1.
parent bac7dec8
......@@ -88,21 +88,12 @@ void FsDiscoverer::reload()
auto blist = blacklist();
for ( const auto& f : rootFolders )
{
try
{
auto folder = m_fsFactory->createDirectory( f->path() );
if ( folder->lastModificationDate() == f->lastModificationDate() )
continue;
checkSubfolders( folder.get(), f, blist );
checkFiles( folder.get(), f );
f->setLastModificationDate( folder->lastModificationDate() );
}
//FIXME: Have a proper filesystem exception to catch
catch(...)
{
LOG_INFO( "Failed to open ", f->path(), ". Considering it deleted." );
m_ml->deleteFolder( f );
}
auto folder = m_fsFactory->createDirectory( f->path() );
if ( folder->lastModificationDate() == f->lastModificationDate() )
continue;
checkSubfolders( folder.get(), f, blist );
checkFiles( folder.get(), f );
f->setLastModificationDate( folder->lastModificationDate() );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment