MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / sha256Dir

Function sha256Dir

scripts/rubi/translate.ts:46–50  ·  view source on GitHub ↗
(root: string, files: string[])

Source from the content-addressed store, hash-verified

44}
45
46function sha256Dir(root: string, files: string[]): string {
47 const h = crypto.createHash('sha256');
48 for (const f of files) h.update(fs.readFileSync(path.join(root, f)));
49 return h.digest('hex');
50}
51
52function main(): void {
53 const argv = process.argv;

Callers 1

mainFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected