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

Function realpath

lib/internal/vfs/setup.js:533–539  ·  view source on GitHub ↗
(path, options)

Source from the content-addressed store, hash-verified

531 return vfsOp(path, (vfs, n) => vfs.promises.readFile(n, options));
532 },
533 realpath(path, options) {
534 const promise = vfsOp(path, (vfs, n) => vfs.promises.realpath(n, options));
535 if (promise !== undefined && options?.encoding === 'buffer') {
536 return promise.then((result) => Buffer.from(result));
537 }
538 return promise;
539 },
540 access(path, mode) {
541 return vfsOp(path, (vfs, n) => {
542 if (mode != null && typeof mode !== 'number') {

Callers

nothing calls this directly

Calls 4

vfsOpFunction · 0.85
realpathMethod · 0.45
thenMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…