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

Function resolve

src/directory.ts:127–133  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

125 */
126export function unsafeIndexRootReason(projectRoot: string): string | null {
127 const resolve = (p: string): string => {
128 try {
129 return fs.realpathSync(path.resolve(p));
130 } catch {
131 return path.resolve(p);
132 }
133 };
134 const resolved = resolve(projectRoot);
135
136 // Filesystem root: `/` on POSIX, a drive root like `C:\` on Windows.

Callers 15

unsafeIndexRootReasonFunction · 0.70
readPackageVersionFunction · 0.50
downloadFunction · 0.50
loadFunction · 0.50
loadFunction · 0.50
loadFunction · 0.50
loadFunction · 0.50
loadFunction · 0.50
loadFunction · 0.50

Calls 1

resolveMethod · 0.80

Tested by 13

tickFunction · 0.40
tickFunction · 0.40
waitForExitFunction · 0.40
tickFunction · 0.40
onDataFunction · 0.40
runShimFunction · 0.40
tickFunction · 0.40
growWalThenSigkillFunction · 0.40
tickFunction · 0.40
runChildFunction · 0.40
growFileFunction · 0.40
checkFunction · 0.40