MCPcopy Create free account
hub / github.com/coder/mux / worktreePathExists

Function worktreePathExists

src/node/worktree/removeManagedGitWorktree.ts:13–20  ·  view source on GitHub ↗
(worktreePath: string)

Source from the content-addressed store, hash-verified

11}
12
13async function worktreePathExists(worktreePath: string): Promise<boolean> {
14 try {
15 await fsPromises.access(worktreePath);
16 return true;
17 } catch {
18 return false;
19 }
20}
21
22async function pruneWorktreesBestEffort(projectPath: string): Promise<void> {
23 try {

Callers 1

removeManagedGitWorktreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected