(path, options)
| 531 | return vfsOp(path, (vfs, n) => vfs.promises.readFile(n, options)); |
| 532 | }, |
| 533 | realpath(path, options) { |
| 534 | const promise = vfsOp(path, (vfs, n) => vfs.promises.realpath(n, options)); |
| 535 | if (promise !== undefined && options?.encoding === 'buffer') { |
| 536 | return promise.then((result) => Buffer.from(result)); |
| 537 | } |
| 538 | return promise; |
| 539 | }, |
| 540 | access(path, mode) { |
| 541 | return vfsOp(path, (vfs, n) => { |
| 542 | if (mode != null && typeof mode !== 'number') { |