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

Function link

lib/internal/fs/promises.js:1836–1849  ·  view source on GitHub ↗
(existingPath, newPath)

Source from the content-addressed store, hash-verified

1834}
1835
1836async function link(existingPath, newPath) {
1837 const h = vfsState.handlers;
1838 if (h !== null) {
1839 const promise = h.link(existingPath, newPath);
1840 if (promise !== undefined) { await promise; return; }
1841 }
1842 existingPath = getValidatedPath(existingPath, 'existingPath');
1843 newPath = getValidatedPath(newPath, 'newPath');
1844 return await PromisePrototypeThen(
1845 binding.link(existingPath, newPath, kUsePromises),
1846 undefined,
1847 handleErrorFromBinding,
1848 );
1849}
1850
1851async function unlink(path) {
1852 const h = vfsState.handlers;

Callers

nothing calls this directly

Calls 1

linkMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…