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

Method opendirSync

lib/internal/vfs/file_system.js:543–549  ·  view source on GitHub ↗

* Opens a directory synchronously. * @param {string} dirPath The directory path * @param {object} [options] Options * @returns {VirtualDir} A directory handle

(dirPath, options)

Source from the content-addressed store, hash-verified

541 * @returns {VirtualDir} A directory handle
542 */
543 opendirSync(dirPath, options) {
544 const entries = this.readdirSync(dirPath, {
545 withFileTypes: true,
546 recursive: options?.recursive,
547 });
548 return new VirtualDir(dirPath, entries);
549 }
550
551 /**
552 * Opens a file as a Blob.

Callers 12

opendirMethod · 0.95
createVfsHandlersFunction · 0.80
opendirFunction · 0.80
opendirSyncFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
test-fs-opendir.jsFile · 0.80
fs-symlink.jsFile · 0.80
fs-read.jsFile · 0.80

Calls 1

readdirSyncMethod · 0.95

Tested by

no test coverage detected