Files
codeql-action/node_modules/@actions/artifact/lib/internal/upload-gzip.d.ts
2021-06-02 10:32:48 +01:00

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>;