MCPcopy
hub / github.com/callstack/agent-device / resolveUserPath

Function resolveUserPath

src/utils/path-resolution.ts:22–26  ·  view source on GitHub ↗
(inputPath: string, options: PathResolutionOptions = {})

Source from the content-addressed store, hash-verified

20}
21
22export function resolveUserPath(inputPath: string, options: PathResolutionOptions = {}): string {
23 const expandedPath = expandUserHomePath(inputPath, options);
24 if (path.isAbsolute(expandedPath)) return expandedPath;
25 return path.resolve(options.cwd ?? process.cwd(), expandedPath);
26}

Callers 9

readRemoteConfigFileFunction · 0.90
resolveRemoteConfigPathFunction · 0.90
resolveInputPathFunction · 0.90
diffCommandFunction · 0.90
resolvePathFunction · 0.90
expandSessionPathFunction · 0.90
resolveStateDirFunction · 0.90

Calls 1

expandUserHomePathFunction · 0.85

Tested by

no test coverage detected