(path, mode)
| 538 | return promise; |
| 539 | }, |
| 540 | access(path, mode) { |
| 541 | return vfsOp(path, (vfs, n) => { |
| 542 | if (mode != null && typeof mode !== 'number') { |
| 543 | throw new ERR_INVALID_ARG_TYPE('mode', 'integer', mode); |
| 544 | } |
| 545 | return vfs.promises.access(n, mode).then(() => true); |
| 546 | }); |
| 547 | }, |
| 548 | readlink(path, options) { |
| 549 | const pathStr = toPathStr(path); |
| 550 | if (pathStr === null) return undefined; |