(path: string)
| 57 | } |
| 58 | |
| 59 | export function calculateFileHash(path: string): string { |
| 60 | return createHash('sha256').update(readFileSync(path)).digest('hex'); |
| 61 | } |
| 62 | |
| 63 | export async function downloadBinaryFile(targetDirPath: string, binary: BinaryFileData): Promise<string> { |
| 64 | const targetFile = join(targetDirPath, binary.targetFile); |
no test coverage detected