6.5.0 - Fix - 修复 VSCode 插件保存项目异常

This commit is contained in:
SuperMonster003
2023-12-02 18:43:31 +08:00
parent 17616504ab
commit 04277eda04
2 changed files with 6 additions and 6 deletions

View File

@@ -19,10 +19,10 @@ object Zip {
var zis: ZipInputStream? = null
try {
zis = ZipInputStream(stream)
var entry: ZipEntry
var entry: ZipEntry?
while (zis.nextEntry.also { entry = it } != null) {
val file = File(dir, entry.name)
if (entry.isDirectory) {
val file = File(dir, entry!!.name)
if (entry!!.isDirectory) {
file.mkdirs()
} else {
ensureDir(file.path)