瀏覽代碼

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

arkon 4 年之前
父節點
當前提交
fe7c7e72f5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt

+ 1 - 0
app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt

@@ -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 }