MCPcopy Create free account
hub / github.com/catboost/catboost / calculateFileHash

Function calculateFileHash

catboost/node-package/build_scripts/download.ts:59–61  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

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

Callers 2

createConfigForVersionFunction · 0.90
downloadBinaryFileFunction · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected