|
@@ -64,7 +64,7 @@ public class FileZip {
|
|
|
*/
|
|
|
public static String zipFiles(List<File> srcFiles, File zipFile) {
|
|
|
|
|
|
- if (!zipFile.exists()) {
|
|
|
+
|
|
|
try {
|
|
|
zipFile.createNewFile();
|
|
|
} catch (IOException e) {
|
|
@@ -107,7 +107,7 @@ public class FileZip {
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
- }
|
|
|
+
|
|
|
return zipFile.getAbsolutePath();
|
|
|
}
|
|
|
}
|