MCPcopy
hub / github.com/labring/FastGPT / fileExists

Function fileExists

document/script/checkDocRefs.js:53–59  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

51}
52
53function fileExists(p) {
54 try {
55 return fs.statSync(p).isFile();
56 } catch {
57 return false;
58 }
59}
60
61function routeExists(basePath) {
62 const candidates = [

Callers 3

isValidRefFunction · 0.85
dirHasMetaFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected