* Renames a file or directory. * @param {string} oldPath The old path * @param {string} newPath The new path * @returns {Promise }
(oldPath, newPath)
| 217 | * @returns {Promise<void>} |
| 218 | */ |
| 219 | async rename(oldPath, newPath) { |
| 220 | if (this.readonly) { |
| 221 | throw createEROFS('rename', oldPath); |
| 222 | } |
| 223 | throw new ERR_METHOD_NOT_IMPLEMENTED('rename'); |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * Renames a file or directory synchronously. |
no test coverage detected