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

Function access

lib/internal/fs/promises.js:1311–1322  ·  view source on GitHub ↗
(path, mode = F_OK)

Source from the content-addressed store, hash-verified

1309// All of the functions are defined as async in order to ensure that errors
1310// thrown cause promise rejections rather than being thrown synchronously.
1311async function access(path, mode = F_OK) {
1312 const h = vfsState.handlers;
1313 if (h !== null) {
1314 const promise = h.access(path, mode);
1315 if (promise !== undefined) { await promise; return; }
1316 }
1317 return await PromisePrototypeThen(
1318 binding.access(getValidatedPath(path), mode, kUsePromises),
1319 undefined,
1320 handleErrorFromBinding,
1321 );
1322}
1323
1324async function cp(src, dest, options) {
1325 options = validateCpOptions(options);

Callers

nothing calls this directly

Calls 1

accessMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…