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

Function access

lib/internal/vfs/setup.js:540–547  ·  view source on GitHub ↗
(path, mode)

Source from the content-addressed store, hash-verified

538 return promise;
539 },
540 access(path, mode) {
541 return vfsOp(path, (vfs, n) => {
542 if (mode != null && typeof mode !== 'number') {
543 throw new ERR_INVALID_ARG_TYPE('mode', 'integer', mode);
544 }
545 return vfs.promises.access(n, mode).then(() => true);
546 });
547 },
548 readlink(path, options) {
549 const pathStr = toPathStr(path);
550 if (pathStr === null) return undefined;

Callers

nothing calls this directly

Calls 3

vfsOpFunction · 0.85
thenMethod · 0.45
accessMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…