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

Function normalizePath

cli/src/utils/worktreeEnv.ts:101–108  ·  view source on GitHub ↗
(rawPath: string, cwd: string)

Source from the content-addressed store, hash-verified

99}
100
101function normalizePath(rawPath: string, cwd: string): string {
102 const resolved = isAbsolute(rawPath) ? rawPath : resolve(cwd, rawPath);
103 try {
104 return realpathSync(resolved);
105 } catch {
106 return resolved;
107 }
108}
109
110function readCreatedAt(worktreePath: string): number {
111 try {

Callers 1

readWorktreeFromGitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected