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

Function resolve

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

Source from the content-addressed store, hash-verified

258 */
259export function unsafeIndexRootReason(projectRoot: string): string | null {
260 const resolve = (p: string): string => {
261 try {
262 return fs.realpathSync(path.resolve(p));
263 } catch {
264 return path.resolve(p);
265 }
266 };
267 const resolved = resolve(projectRoot);
268
269 // Filesystem root: `/` on POSIX, a drive root like `C:\` on Windows.

Callers 15

workerStartedFunction · 0.70
unsafeIndexRootReasonFunction · 0.70
resolveSpecifiersFunction · 0.50
readPackageVersionFunction · 0.50
check-ui-build.mjsFile · 0.50
downloadFunction · 0.50
loadFunction · 0.50
loadFunction · 0.50
loadFunction · 0.50
loadFunction · 0.50

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected