Skip to content

datasource.ungzip ​

Decompresses a gzip file.

js
datasource.ungzip(fileName, destinationPath)

Parameters ​

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

Returns ​

boolean

true when the file was decompressed, otherwise false.

Examples ​

js
datasource.ungzip("uploads/data.csv.gz");
datasource.ungzip("uploads/data.csv.gz", "extracted/");