(path, options)
| 369 | } |
| 370 | |
| 371 | function 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 | |
| 386 | module.exports = { |
| 387 | Dir, |
no test coverage detected
searching dependent graphs…