(
path: string,
destination?: string
)
| 364 | } |
| 365 | |
| 366 | async decompressFile( |
| 367 | path: string, |
| 368 | destination?: string |
| 369 | ): Promise<StateCompressionResult> { |
| 370 | const dest = destination ?? path.replace(/\.gz$/i, ""); |
| 371 | const bytes = await gunzipBytes(await this.readFileBytes(path)); |
| 372 | await this.writeFileBytes(dest, bytes); |
| 373 | return { path, destination: dest, bytesWritten: bytes.byteLength }; |
| 374 | } |
| 375 | |
| 376 | async hashFile(path: string, options?: StateHashOptions): Promise<string> { |
| 377 | return hashBytes(await this.readFileBytes(path), options); |
nothing calls this directly
no test coverage detected