MCPcopy Index your code
hub / github.com/labring/FastGPT / dirHasMeta

Function dirHasMeta

document/script/checkDocRefs.js:169–171  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

167}
168
169function dirHasMeta(dir) {
170 return fileExists(path.join(dir, 'meta.json')) || fileExists(path.join(dir, 'meta.en.json'));
171}
172
173// 收集 dir 下所有「应被父级 meta 引用」的 slug。
174// - 子目录若有自己的 meta,则父级只需引用目录名,不下钻

Callers 1

collectExpectedSlugsFunction · 0.85

Calls 2

fileExistsFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected