Move Local Source to separate module (#9152)
* Move Local Source to separate module * Review changes
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package tachiyomi.source.local.io
|
||||
|
||||
import java.io.File
|
||||
|
||||
object Archive {
|
||||
|
||||
private val SUPPORTED_ARCHIVE_TYPES = listOf("zip", "cbz", "rar", "cbr", "epub")
|
||||
|
||||
fun isSupported(file: File): Boolean = with(file) {
|
||||
return extension.lowercase() in SUPPORTED_ARCHIVE_TYPES
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user