chore[zip]: zip

This commit is contained in:
godotg committed 2024-05-13 16:05:01 +08:00
1 parent 2cfeaa32ee
commit 7b98bf2190
1 file changed
+3 -3
@@ -68,14 +68,14 @@ public abstract class ZipUtils {
// -----------------------------------------------------------------------------------------------------------------
public static void zip(String[] sourceFilesPath, String zipFilePath) {
public static void zip(String[] sourceFilePaths, String zipFilePath) {
FileOutputStream fos = null;
ZipOutputStream zipOut = null;
try {
fos = new FileOutputStream(zipFilePath);
zipOut = new ZipOutputStream(fos);
for (var sourceFile : sourceFilesPath) {
var fileToZip = new File(sourceFile);
for (var sourceFilePath : sourceFilePaths) {
var fileToZip = new File(sourceFilePath);
if (fileToZip.isHidden()) {
continue;
}