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

FsDiscoverer: Log file deletion

parent e981df66
......@@ -147,12 +147,14 @@ void FsDiscoverer::checkFiles( fs::IDirectory* folder, FolderPtr parentFolder )
files.erase( it );
continue;
}
LOG_INFO( "Forcing file refresh ", filePath );
m_ml->deleteFile( filePath );
m_ml->addFile( filePath, parentFolder );
files.erase( it );
}
for ( auto file : files )
{
LOG_INFO( "File ", file->mrl(), " not found on filesystem, deleting it" );
m_ml->deleteFile( file );
}
}
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