Commit 5aca9e37 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

FsDiscoverer: Return true when the entry point was handled

Even in case of error. Returning false denotes that we couldn't handle
such an entry point. If we refuse to discover because the entry point is
blacklisted or because of a special file, it was still properly handled
by the discoverer.
parent aba1f3d8
......@@ -65,9 +65,9 @@ bool FsDiscoverer::discover( const std::string &entryPoint )
return true;
auto blist = blacklist();
if ( isBlacklisted( *fsDir, blist ) == true )
return false;
return true;
if ( hasDotNoMediaFile( *fsDir ) )
return false;
return true;
return addFolder( *fsDir, nullptr, blist );
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