MCPcopy Index your code
hub / github.com/nodejs/node / gotResolvedLink

Function gotResolvedLink

lib/fs.js:3516–3532  ·  view source on GitHub ↗
(resolvedLink)

Source from the content-addressed store, hash-verified

3514 }
3515
3516 function gotResolvedLink(resolvedLink) {
3517 // Resolve the link, then start over
3518 p = pathModule.resolve(resolvedLink, StringPrototypeSlice(p, pos));
3519 current = base = splitRoot(p);
3520 pos = current.length;
3521
3522 // On windows, check that the root exists. On unix there is no need.
3523 if (isWindows && !knownHard.has(base)) {
3524 fs.lstat(base, (err) => {
3525 if (err) return callback(err);
3526 knownHard.add(base);
3527 LOOP();
3528 });
3529 } else {
3530 process.nextTick(LOOP);
3531 }
3532 }
3533}
3534
3535/**

Callers 1

gotTargetFunction · 0.85

Calls 6

LOOPFunction · 0.85
hasMethod · 0.65
addMethod · 0.65
callbackFunction · 0.50
resolveMethod · 0.45
lstatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…