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

Function accessSync

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

Source from the content-addressed store, hash-verified

245 return result;
246 },
247 accessSync(path, mode) {
248 const pathStr = toPathStr(path);
249 if (pathStr !== null) {
250 const r = findVFSForPath(pathStr);
251 if (r !== null) {
252 if (mode != null && typeof mode !== 'number') {
253 throw new ERR_INVALID_ARG_TYPE('mode', 'integer', mode);
254 }
255 r.vfs.accessSync(r.normalized, mode);
256 return true;
257 }
258 }
259 return undefined;
260 },
261 readlinkSync(path, options) {
262 const pathStr = toPathStr(path);
263 if (pathStr === null) return undefined;

Callers

nothing calls this directly

Calls 3

toPathStrFunction · 0.85
findVFSForPathFunction · 0.85
accessSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…