add the included folders at the scaned ones

This commit is contained in:
tibbi 2017-03-17 23:15:20 +01:00
parent a3777d0f73
commit d61f1d7d1b

View file

@ -74,6 +74,8 @@ fun Context.getParents(): ArrayList<String> {
parentsSet.addAll(noMediaFolders)
}
parentsSet.addAll(config.includedFolders)
parentsSet.filterTo(parents, {
val file = File(it)
if (file.isDirectory && file.canonicalFile == file.absoluteFile) { // filter out symbolic links too