Filter out hidden directories for local source (closes #3706)
This commit is contained in:
parent
9ba11a585f
commit
fe7c7e72f5
@ -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 }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user