renameSync
renameSync(path
, dest
): void
Synchronously renames a file or directory.
Parameters
Parameter | Type | Description |
---|---|---|
path | PathLike | Source file path to rename. |
dest | PathLike | Destination file path to rename to. |
Returns
void
renameSync(path
, dest
): void
Synchronously renames a file or directory.
Parameter | Type | Description |
---|---|---|
path | PathLike | Source file path to rename. |
dest | PathLike | Destination file path to rename to. |
void