I am thinking about a easy way to exclude (or include) certain folders from the scanner of the new audio-player app.
“Music” goes that way, that in the usersettings, the searchfolders need to be defined.
I thought about scanning everything - unless there is a positive or negative Tag/Category set to keep it simpler for the user.
But when looking at searchByMime or searchByTag, they are only straight forward.
One way could be to use both of them combined with a getSubFolders and build a recursive construction of the filelist to be scanned.
is there anything else which could be used for this?
Just a word of warning. That’s how “Pictures” used to work and people started to complain that it took forever to load the app.
You don’t have much of a choice if you want to offer the full collection on the landing page, but make sure you:
don’t make it the default
add a clear warning about what it means to scan the whole storage locations
From NC 10 you can use background jobs, which should help a lot building your internal tables and if you setup hooks, then you should be able to keep them in sync with the real storage.