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

Method access

lib/internal/vfs/provider.js:451–454  ·  view source on GitHub ↗

* Checks file accessibility. * @param {string} path The path to check * @param {number} [mode] Access mode * @returns {Promise }

(path, mode)

Source from the content-addressed store, hash-verified

449 * @returns {Promise<void>}
450 */
451 async access(path, mode) {
452 const stats = await this.stat(path);
453 this.#checkAccessMode(path, stats, mode);
454 }
455
456 /**
457 * Checks file accessibility synchronously.

Callers 15

icu_downloadFunction · 0.45
_on_errorMethod · 0.45
ExecRecursiveMirrorMethod · 0.45
_FindCommandInPathFunction · 0.45
accessFunction · 0.45
accessSyncFunction · 0.45
existsFunction · 0.45
accessFunction · 0.45
accessFunction · 0.45
mainFunction · 0.45
runAsyncBenchFunction · 0.45
accessFunction · 0.45

Calls 2

statMethod · 0.95
#checkAccessModeMethod · 0.95

Tested by

no test coverage detected