mirror of
https://github.com/github/codeql-action.git
synced 2025-12-28 02:00:12 +08:00
15 lines
817 B
TypeScript
15 lines
817 B
TypeScript
/// <reference types="node" />
|
|
/**
|
|
* Creates a Gzip compressed file of an original file at the provided temporary filepath location
|
|
* @param {string} originalFilePath filepath of whatever will be compressed. The original file will be unmodified
|
|
* @param {string} tempFilePath the location of where the Gzip file will be created
|
|
* @returns the size of gzip file that gets created
|
|
*/
|
|
export declare function createGZipFileOnDisk(originalFilePath: string, tempFilePath: string): Promise<number>;
|
|
/**
|
|
* Creates a GZip file in memory using a buffer. Should be used for smaller files to reduce disk I/O
|
|
* @param originalFilePath the path to the original file that is being GZipped
|
|
* @returns a buffer with the GZip file
|
|
*/
|
|
export declare function createGZipFileInBuffer(originalFilePath: string): Promise<Buffer>;
|