| 633 | utimes: (path, atime, mtime) => |
| 634 | vfsOp(path, (vfs, n) => vfs.promises.utimes(n, atime, mtime).then(() => true)), |
| 635 | open(path, flags, mode) { |
| 636 | // openSync is synchronous, so an error thrown by the provider would |
| 637 | // escape via fs.open's caller (instead of going through the callback). |
| 638 | // Catch it here and surface as a rejected promise. |
| 639 | return vfsOp(path, async (vfs, n) => vfs.openSync(n, flags, mode)); |
| 640 | }, |
| 641 | promisesOpen(path, flags, mode) { |
| 642 | const pathStr = toPathStr(path); |
| 643 | if (pathStr !== null) { |