Avoid folders to scan to media library

I would like to avoid getting some folders to the library. Is it possible doing this, eg, adding a .nomedia flag in the folder.

Why not just keep movies in movies folder and move others out to another folder. Works for everyone else.

This is really more of a kodi question, but you may want to check out the excludefromscan option for your advanced settings. From the Kodi Wiki here

So probably something like