mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 10:37:47 +01:00
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 }
|
||||
|
||||
|
|
Loading…
Reference in a new issue