| 599 | rm: (path, options) => vfsOp(path, (vfs, n) => vfs.promises.rm(n, options).then(() => true)), |
| 600 | unlink: (path) => vfsOp(path, (vfs, n) => vfs.promises.unlink(n).then(() => true)), |
| 601 | rename(oldPath, newPath) { |
| 602 | return vfsOp(oldPath, (vfs, n) => { |
| 603 | checkSameVFS(n, toPathStr(newPath), 'rename', vfs); |
| 604 | return vfs.promises.rename(n, resolve(toPathStr(newPath))).then(() => true); |
| 605 | }); |
| 606 | }, |
| 607 | copyFile(src, dest, mode) { |
| 608 | return vfsOp(src, (vfs, n) => { |
| 609 | checkSameVFS(n, toPathStr(dest), 'copyfile', vfs); |