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

FsDiscoverer: Add missing devices update when reloading a subdirectory

parent 11d37c9e
......@@ -99,6 +99,12 @@ bool FsDiscoverer::reload()
bool FsDiscoverer::reload( const std::string& entryPoint )
{
LOG_INFO( "Reloading folder ", entryPoint );
// Start by checking if previously known devices have been plugged/unplugged
if ( checkDevices() == false )
{
LOG_ERROR( "Refusing to reloading files with no storage device" );
return false;
}
auto folder = Folder::fromPath( m_ml, entryPoint );
if ( folder == nullptr )
{
......
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