mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
本地书籍界面支持导入压缩文件
This commit is contained in:
@@ -96,9 +96,12 @@ object ArchiveUtils {
|
||||
}
|
||||
}
|
||||
|
||||
fun checkAchieve(name: String): Boolean {
|
||||
if (archiveFileRegex.matches(name)) return true
|
||||
throw IllegalArgumentException("Unexpected file suffix: Only 7z rar zip Accepted")
|
||||
fun isArchive(name: String): Boolean {
|
||||
return if (archiveFileRegex.matches(name)) true else false
|
||||
}
|
||||
private fun checkAchieve(name: String) {
|
||||
if (!isArchive(name))
|
||||
throw IllegalArgumentException("Unexpected file suffix: Only 7z rar zip Accepted")
|
||||
}
|
||||
|
||||
private fun getCacheFolderFileDoc(
|
||||
|
||||
Reference in New Issue
Block a user