/** * Zips a file or a folder. If adding a folder, all its content will be added. */ public static File zip(File file) throws IOException { String zipFile = file.getAbsolutePath() + ZIP_EXT; return ZipBuilder.createZipFile(zipFile) .add(file).recursive().save() .toZipFile(); }
/** * Zips a file or a folder. If adding a folder, all its content will be added. */ public static File zip(final File file) throws IOException { String zipFile = file.getAbsolutePath() + ZIP_EXT; return ZipBuilder.createZipFile(zipFile) .add(file).recursive().save() .toZipFile(); }
/** * Zips a file or a folder. If adding a folder, all its content will be added. */ public static File zip(final File file) throws IOException { String zipFile = file.getAbsolutePath() + ZIP_EXT; return ZipBuilder.createZipFile(zipFile) .add(file).recursive().save() .toZipFile(); }