mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
[skip ci] fix
This commit is contained in:
parent
d5dd9df537
commit
fc953adb8d
@ -522,7 +522,8 @@ interface JsExtensions : JsEncodeUtils {
|
||||
*/
|
||||
fun unArchiveFile(zipPath: String): String {
|
||||
if (zipPath.isEmpty()) return ""
|
||||
return ArchiveUtils.deCompress(zipPath).toString()
|
||||
val zipFile = getFile(zipPath)
|
||||
return ArchiveUtils.deCompress(zipFile.absolutePath).toString()
|
||||
.substring(FileUtils.getCachePath().length)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user