Skip to content

datasource.unzip ​

Extracts a zip file.

js
datasource.unzip(fileName, destinationPath)

Parameters ​

ParameterTypeDescription
fileNamestringThe path of the zip file.
destinationPathstringOptional. The directory to extract into. Defaults to the zip file's own directory.

Returns ​

boolean

true when the file was extracted, otherwise false.

Examples ​

js
datasource.unzip("myfile.zip");
datasource.unzip("myfile.zip", "destination_directory/");