class ZipService: Any
Constructors
Name | Description |
---|---|
constructor()
|
Utility to create ZIP files based on folder contents. |
Methods
createZipFromFolder
fun createZipFromFolder(zipFilename: String, projectFolder: File): ZipFile
Creates a ZIP File with the contents of projectFolder.
Parameters
Name | Description |
---|---|
zipFilename: String
|
is a String with the desired name for the ZIP file |
projectFolder: File
|
is a File containing the directory that shall be zipped |
ReturnValue
Name | Description |
---|---|
ZipFile
|
a ZipFile |
unzip
fun unzip(file: Path, originalFilename: String?): File
Decompresses a ZIP file.
Parameters
Name | Description |
---|---|
file: Path
|
is a Path representing the .ZIP file to decompress |
originalFilename: String?
|
is a String |
ReturnValue
Name | Description |
---|---|
File
|
a File containing a directory with the unzipped files |
Utility to create ZIP files based on folder contents.