MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / fileExists

Function fileExists

tools/spec-loop/hooks/gate.ts:80–86  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

78const FRONTMATTER_RE = /^---\s*\n([\s\S]*?)\n---\s*(?:\n|$)/;
79
80function fileExists(path: string): boolean {
81 try {
82 return statSync(path).isFile();
83 } catch {
84 return false;
85 }
86}
87
88function dirExists(path: string): boolean {
89 try {

Callers 1

findSpecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected