public class ZipUtils
extends java.lang.Object
Constructor and Description |
---|
ZipUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
unzip(GATKPath path,
java.io.File dest,
java.lang.String... files)
Unzips a file in a provided path into a destination directory.
|
static void |
zip(java.io.File source,
GATKPath dest,
java.lang.String... files)
Creates a zip file give a source file/directory to zip and the final destination zip file path.\
|
public static void unzip(GATKPath path, java.io.File dest, java.lang.String... files)
path
- the location of the zip file to unzip.dest
- the destination directory.files
- files to unzip, by omission is the whole zip file content.public static void zip(java.io.File source, GATKPath dest, java.lang.String... files)
Directories are zipped recursively.
source
- the source folder or file.dest
- the destination path.files
- if not empty, this array indicate what files needs to be zipped. If zero length, all
files will be zipped.