MCPcopy Create free account
hub / github.com/tiann/hapi / pathExists

Function pathExists

cli/src/runner/worktree.ts:83–90  ·  view source on GitHub ↗
(targetPath: string)

Source from the content-addressed store, hash-verified

81}
82
83async function pathExists(targetPath: string): Promise<boolean> {
84 try {
85 await access(targetPath);
86 return true;
87 } catch {
88 return false;
89 }
90}
91
92async function branchExists(repoRoot: string, branch: string): Promise<boolean> {
93 try {

Callers 1

createWorktreeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected