Skip to content

datasource.gzip ​

Compresses a file into a gzip file. Gzip compresses one file only; use datasource.zip to bundle several files together.

js
datasource.gzip(fileName, outputFileName)

Parameters ​

ParameterTypeDescription
fileNamestringThe path of the file to compress.
outputFileNamestringThe path of the .gz file to create.

Returns ​

boolean

true when the file was compressed, otherwise false.

Examples ​

js
datasource.gzip("exports/actuals.csv", "exports/actuals.csv.gz");