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

FsDiscoverer: Don't attempt to remove a folder being created

parent 712cc793
......@@ -166,8 +166,11 @@ void FsDiscoverer::checkFolder( fs::IDirectory& currentFolderFs, Folder& current
// In this case, simply delete the folder.
if ( hasDotNoMediaFile( currentFolderFs ) )
{
LOG_INFO( "Deleting folder ", currentFolderFs.mrl(), " due to a .nomedia file" );
m_ml->deleteFolder( currentFolder );
if ( newFolder == false )
{
LOG_INFO( "Deleting folder ", currentFolderFs.mrl(), " due to a .nomedia file" );
m_ml->deleteFolder( currentFolder );
}
return;
}
}
......
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