Filter out hidden directories for local source (closes #3706)
This commit is contained in:
parent
9ba11a585f
commit
fe7c7e72f5
1 changed files with 1 additions and 0 deletions
|
@ -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 }
|
||||
|
||||
|
|
Reference in a new issue