MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / checkPathExists

Function checkPathExists

source code/utils/windowsPaths.ts:17–24  ·  view source on GitHub ↗

* Check if a file or directory exists on Windows using the dir command * @param path - The path to check * @returns true if the path exists, false otherwise

(path: string)

Source from the content-addressed store, hash-verified

15 * @returns true if the path exists, false otherwise
16 */
17function checkPathExists(path: string): boolean {
18 try {
19 execSync_DEPRECATED(`dir "${path}"`, { stdio: 'pipe' })
20 return true
21 } catch {
22 return false
23 }
24}
25
26/**
27 * Find an executable using where.exe on Windows

Callers 2

findExecutableFunction · 0.85
windowsPaths.tsFile · 0.85

Calls 1

execSync_DEPRECATEDFunction · 0.85

Tested by

no test coverage detected