MCPcopy Index your code
hub / github.com/codeaashu/claude-code / dirExists

Function dirExists

mcp-server/src/server.ts:37–43  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

35// ---------------------------------------------------------------------------
36
37async function dirExists(p: string): Promise<boolean> {
38 try {
39 return (await fs.stat(p)).isDirectory();
40 } catch {
41 return false;
42 }
43}
44
45async function fileExists(p: string): Promise<boolean> {
46 try {

Callers 2

createServerFunction · 0.85
validateSrcRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected