MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / checkPathExists

Function checkPathExists

src/utils/windowsPaths.ts:17–19  ·  view source on GitHub ↗

* Check if a file or directory exists on Windows. * Uses fs.existsSync instead of `dir` shell command to avoid spawning * cmd.exe — which can cause brief console window flashes in detached * or windowsHide child processes.

(filePath: string)

Source from the content-addressed store, hash-verified

15 * or windowsHide child processes.
16 */
17function checkPathExists(filePath: string): boolean {
18 return existsSync(filePath)
19}
20
21/**
22 * Find an executable using where.exe on Windows

Callers 2

findExecutableFunction · 0.85
windowsPaths.tsFile · 0.85

Calls 1

existsSyncFunction · 0.90

Tested by

no test coverage detected