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

FsDiscoverer: Accept case insensitive .nomedia files

parent 035629be
......@@ -319,7 +319,7 @@ bool FsDiscoverer::hasDotNoMediaFile( const fs::IDirectory& directory )
{
const auto& files = directory.files();
return std::find_if( begin( files ), end( files ), []( const std::shared_ptr<fs::IFile>& file ){
return file->name() == ".nomedia";
return strcasecmp( file->name().c_str(), ".nomedia" ) == 0;
}) != end( files );
}
......
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