Skip to main content
function renameSync
renameSync(
oldPath: PathLike,
newPath: PathLike,
): void
Deprecated

Renames the file from oldPath to newPath. Returns undefined.

See the POSIX rename(2) documentation for more details.

Parameters

oldPath: PathLike
newPath: PathLike

Return Type

void
Back to top