MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / walk

Function walk

scripts/release-check.mjs:48–56  ·  view source on GitHub ↗
(dir, base = dir)

Source from the content-addressed store, hash-verified

46}
47
48function walk(dir, base = dir) {
49 const out = []
50 for (const name of readdirSync(dir)) {
51 const full = join(dir, name)
52 if (statSync(full).isDirectory()) out.push(...walk(full, base))
53 else out.push(relative(base, full))
54 }
55 return out
56}
57
58function hashFile(path) {
59 return createHash('sha256').update(readFileSync(path)).digest('hex')

Callers 1

release-check.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected