Filter out hidden directories for local source (closes #3706)

This commit is contained in:
arkon 2020-08-22 17:33:04 -04:00
parent 9ba11a585f
commit fe7c7e72f5

View file

@ -80,6 +80,7 @@ class LocalSource(private val context: Context) : CatalogueSource {
.mapNotNull { it.listFiles()?.toList() }
.flatten()
.filter { it.isDirectory }
.filterNot { it.name.startsWith('.') }
.filter { if (time == 0L) it.name.contains(query, ignoreCase = true) else it.lastModified() >= time }
.distinctBy { it.name }