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

Function pathExists

src/node/services/__tests__/devToolsService.test.ts:51–58  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

49}
50
51async function pathExists(filePath: string): Promise<boolean> {
52 try {
53 await fs.stat(filePath);
54 return true;
55 } catch {
56 return false;
57 }
58}
59
60function countStaleStepUpdates(logContents: string, stepId: string): number {
61 return logContents.split("\n").reduce((count, line) => {

Callers 1

Calls 1

statMethod · 0.65

Tested by

no test coverage detected