MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / assertDirectory

Function assertDirectory

scripts/recover-project.mjs:134–139  ·  view source on GitHub ↗
(dirPath)

Source from the content-addressed store, hash-verified

132}
133
134async function assertDirectory(dirPath) {
135 const stat = await fs.stat(dirPath)
136 if (!stat.isDirectory()) {
137 throw new Error(`Expected directory: ${dirPath}`)
138 }
139}
140
141async function walk(rootDir) {
142 const results = []

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected