修改OTA
This commit is contained in:
+5
-1
@@ -515,7 +515,11 @@ public class ImportFileUtil {
|
||||
// 需要保留原来的文件结构时,需要对空文件夹进行处理
|
||||
if (KeepDirStructure) {
|
||||
// 空文件夹的处理
|
||||
zos.putNextEntry(new ZipEntry(name + "/"));
|
||||
ZipEntry folderEntry = new ZipEntry(name + "/");
|
||||
folderEntry.setMethod(ZipEntry.STORED);
|
||||
folderEntry.setSize(0);
|
||||
folderEntry.setCrc(0);
|
||||
zos.putNextEntry(folderEntry);
|
||||
// 没有文件,不需要文件的copy
|
||||
zos.closeEntry();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user