mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 04:19:14 +01:00
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() }
|
.mapNotNull { it.listFiles()?.toList() }
|
||||||
.flatten()
|
.flatten()
|
||||||
.filter { it.isDirectory }
|
.filter { it.isDirectory }
|
||||||
|
.filterNot { it.name.startsWith('.') }
|
||||||
.filter { if (time == 0L) it.name.contains(query, ignoreCase = true) else it.lastModified() >= time }
|
.filter { if (time == 0L) it.name.contains(query, ignoreCase = true) else it.lastModified() >= time }
|
||||||
.distinctBy { it.name }
|
.distinctBy { it.name }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user