MCPcopy
hub / github.com/coder/mux / pathExists

Function pathExists

src/node/services/workspaceMcpOverridesService.test.ts:18–25  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

16}
17
18async function pathExists(filePath: string): Promise<boolean> {
19 try {
20 await fs.stat(filePath);
21 return true;
22 } catch {
23 return false;
24 }
25}
26
27describe("WorkspaceMcpOverridesService", () => {
28 let tempDir: string;

Calls 1

statMethod · 0.65

Tested by

no test coverage detected