| 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 | /** |