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
| Parameter | Type | Description |
|---|---|---|
fileName | string | The path of the file to compress. |
outputFileName | string | The path of the .gz file to create. |
Returns
booleantrue when the file was compressed, otherwise false.
Examples
js
datasource.gzip("exports/actuals.csv", "exports/actuals.csv.gz");