(path, options)
| 507 | return undefined; |
| 508 | }, |
| 509 | stat(path, options) { |
| 510 | const promise = vfsOp(path, (vfs, n) => vfs.promises.stat(n, options)); |
| 511 | if (promise !== undefined && options?.throwIfNoEntry === false) { |
| 512 | return promise.catch((err) => { |
| 513 | if (err?.code === 'ENOENT') return undefined; |
| 514 | throw err; |
| 515 | }); |
| 516 | } |
| 517 | return promise; |
| 518 | }, |
| 519 | readFile(path, options) { |
| 520 | if (typeof path === 'number') { |
| 521 | const vfd = getVirtualFd(path); |