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

Function accessSync

lib/fs.js:267–274  ·  view source on GitHub ↗

* Synchronously tests a user's permissions for the file or * directory specified by `path`. * @param {string | Buffer | URL} path * @param {number} [mode] * @returns {void}

(path, mode)

Source from the content-addressed store, hash-verified

265 * @returns {void}
266 */
267function accessSync(path, mode) {
268 const h = vfsState.handlers;
269 if (h !== null) {
270 const result = h.accessSync(path, mode);
271 if (result !== undefined) return;
272 }
273 binding.access(getValidatedPath(path), mode);
274}
275
276/**
277 * Tests whether or not the given path exists.

Callers

nothing calls this directly

Calls 2

accessSyncMethod · 0.45
accessMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…