MCPcopy Create free account
hub / github.com/codeHappyDananx/SpecWave / isValidOpenSpecProject

Function isValidOpenSpecProject

electron/main.js:595–599  ·  view source on GitHub ↗
(dirPath)

Source from the content-addressed store, hash-verified

593
594// 验证是否为有效的 OpenSpec 项目
595function isValidOpenSpecProject(dirPath) {
596 const changesPath = path.join(dirPath, 'changes')
597 const specsPath = path.join(dirPath, 'specs')
598 return fs.existsSync(changesPath) || fs.existsSync(specsPath)
599}
600
601// 获取文件类型
602function getFileType(fileName) {

Callers 1

main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected