MCPcopy
hub / github.com/claude-code-best/claude-code / getCwd

Function getCwd

src/utils/cwd.ts:26–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 * Get the current working directory or the original working directory if the current one is not available
25 */
26export function getCwd(): string {
27 try {
28 return pwd()
29 } catch {
30 return getOriginalCwd()
31 }
32}

Callers 15

resolveCwdReentryFunction · 0.85
getPathFunction · 0.85
validateInputFunction · 0.85
callFunction · 0.85
validateInputFunction · 0.85
callFunction · 0.85
getPathFunction · 0.85
callFunction · 0.85
validateAttachmentPathsFunction · 0.85

Calls 2

pwdFunction · 0.85
getOriginalCwdFunction · 0.85

Tested by

no test coverage detected