MCPcopy Index your code
hub / github.com/coder/mux / pathExists

Function pathExists

src/node/runtime/submoduleSync.test.ts:44–51  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

42}
43
44async function pathExists(filePath: string): Promise<boolean> {
45 try {
46 await fs.access(filePath);
47 return true;
48 } catch {
49 return false;
50 }
51}
52
53function createExecStream(result: { stdout?: string; stderr?: string; exitCode: number }) {
54 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected