(
path: string,
destination?: string
)
| 354 | } |
| 355 | |
| 356 | async compressFile( |
| 357 | path: string, |
| 358 | destination?: string |
| 359 | ): Promise<StateCompressionResult> { |
| 360 | const dest = destination ?? `${path}.gz`; |
| 361 | const bytes = await gzipBytes(await this.readFileBytes(path)); |
| 362 | await this.writeFileBytes(dest, bytes); |
| 363 | return { path, destination: dest, bytesWritten: bytes.byteLength }; |
| 364 | } |
| 365 | |
| 366 | async decompressFile( |
| 367 | path: string, |
nothing calls this directly
no test coverage detected