MCPcopy Create free account
hub / github.com/anus-dev/ANUS / getRealPath

Function getRealPath

packages/core/src/ide/ide-client.ts:43–51  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

41}
42
43function getRealPath(path: string): string {
44 try {
45 return fs.realpathSync(path);
46 } catch (_e) {
47 // If realpathSync fails, it might be because the path doesn't exist.
48 // In that case, we can fall back to the original path.
49 return path;
50 }
51}
52
53/**
54 * Manages the connection to and interaction with the IDE server.

Callers 1

validateWorkspacePathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected