MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / pathFor

Function pathFor

src/upgrade/remove-binary.ts:103–105  ·  view source on GitHub ↗

* Path math keyed on the TARGET platform (not the host) — same convention as * `detectInstallMethod`, so the planner is deterministic when unit-tested with * a win32 fixture on a POSIX host and vice versa. In production the probe's * platform always matches the running host.

(platform: NodeJS.Platform)

Source from the content-addressed store, hash-verified

101 * platform always matches the running host.
102 */
103function pathFor(platform: NodeJS.Platform): path.PlatformPath {
104 return platform === 'win32' ? path.win32 : path.posix;
105}
106
107/** The machine-level state dir that must survive an artifacts-only removal. */
108function stateDir(p: RemoveBinaryProbes): string {

Callers 5

stateDirFunction · 0.85
installDirCandidatesFunction · 0.85
planBinaryRemovalFunction · 0.85
moveLockedExeAsideFunction · 0.85
executeBinaryRemovalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected