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

Function pathExists

src/node/worktree/removeManagedGitWorktree.test.ts:27–32  ·  view source on GitHub ↗
(targetPath: string)

Source from the content-addressed store, hash-verified

25}
26
27async function pathExists(targetPath: string): Promise<boolean> {
28 return fs.promises
29 .access(targetPath)
30 .then(() => true)
31 .catch(() => false);
32}
33
34describe("removeManagedGitWorktree", () => {
35 const tempDirs: string[] = [];

Calls

no outgoing calls

Tested by

no test coverage detected