Lines Matching refs:target
1739 * Creates the link called `path` pointing to `target`.
1740 * @param {string | Buffer | URL} target
1746 function symlink(target, path, type_, callback_) {
1750 target = getValidatedPath(target, 'target');
1757 // Calculate absolute file name of the symlink target, and check
1761 absoluteTarget = pathModule.resolve(path, '..', target);
1769 const destination = preprocessSymlinkDestination(target,
1782 const destination = preprocessSymlinkDestination(target, type, path);
1792 * pointing to `target`.
1793 * @param {string | Buffer | URL} target
1798 function symlinkSync(target, path, type) {
1801 const absoluteTarget = pathModule.resolve(`${path}`, '..', `${target}`);
1806 target = getValidatedPath(target, 'target');
1810 const ctx = { path: target, dest: path };
1811 binding.symlink(preprocessSymlinkDestination(target, type, path),
2815 // Call `gotTarget()` as soon as the link target is known.
2829 fs.readlink(base, (err, target) => {
2830 if (!isWindows) seenLinks.set(id, target);
2831 gotTarget(err, target);
2836 function gotTarget(err, target) {
2839 gotResolvedLink(pathModule.resolve(previous, target));