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

Function readlink

lib/internal/fs/promises.js:1722–1735  ·  view source on GitHub ↗
(path, options)

Source from the content-addressed store, hash-verified

1720}
1721
1722async function readlink(path, options) {
1723 const h = vfsState.handlers;
1724 if (h !== null) {
1725 const promise = h.readlink(path, options);
1726 if (promise !== undefined) return await promise;
1727 }
1728 options = getOptions(options);
1729 path = getValidatedPath(path, 'oldPath');
1730 return await PromisePrototypeThen(
1731 binding.readlink(path, options.encoding, kUsePromises),
1732 undefined,
1733 handleErrorFromBinding,
1734 );
1735}
1736
1737async function symlink(target, path, type) {
1738 const h = vfsState.handlers;

Callers 1

onLinkFunction · 0.50

Calls 2

getOptionsFunction · 0.70
readlinkMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…