* Renames a file or directory synchronously. * @param {string} oldPath The old path * @param {string} newPath The new path
(oldPath, newPath)
| 354 | * @param {string} newPath The new path |
| 355 | */ |
| 356 | renameSync(oldPath, newPath) { |
| 357 | const oldProviderPath = this.#toProviderPath(oldPath); |
| 358 | const newProviderPath = this.#toProviderPath(newPath); |
| 359 | this[kProvider].renameSync(oldProviderPath, newProviderPath); |
| 360 | } |
| 361 | |
| 362 | /** |
| 363 | * Copies a file synchronously. |
nothing calls this directly
no test coverage detected