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

Function opendirSync

lib/internal/fs/dir.js:371–384  ·  view source on GitHub ↗
(path, options)

Source from the content-addressed store, hash-verified

369}
370
371function opendirSync(path, options) {
372 const h = vfsState.handlers;
373 if (h !== null) {
374 const result = h.opendirSync(path, options);
375 if (result !== undefined) return result;
376 }
377
378 path = getValidatedPath(path);
379 options = getOptions(options, { encoding: 'utf8' });
380
381 const handle = dirBinding.opendirSync(path);
382
383 return new Dir(handle, path, options);
384}
385
386module.exports = {
387 Dir,

Callers 6

cleanupMethod · 0.85
copyDirFunction · 0.85
explicitCallFunction · 0.85
implicitCallFunction · 0.85

Calls 2

opendirSyncMethod · 0.80
getOptionsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…