mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-13 00:15:24 +00:00
chore[zip]: zip
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user