datasource.unzip
Extracts a zip file.
js
datasource.unzip(fileName, destinationPath)Parameters
| Parameter | Type | Description |
|---|---|---|
fileName | string | The path of the zip file. |
destinationPath | string | Optional. The directory to extract into. Defaults to the zip file's own directory. |
Returns
booleantrue when the file was extracted, otherwise false.
Examples
js
datasource.unzip("myfile.zip");
datasource.unzip("myfile.zip", "destination_directory/");