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

Function resolve

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

Source from the content-addressed store, hash-verified

259 */
260export function unsafeIndexRootReason(projectRoot: string): string | null {
261 const resolve = (p: string): string => {
262 try {
263 return fs.realpathSync(path.resolve(p));
264 } catch {
265 return path.resolve(p);
266 }
267 };
268 const resolved = resolve(projectRoot);
269
270 // 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