Method description:
Synchronized version of rename() .
Grammar:
Since this method belongs to the fs module, the fs module needs to be introduced before use (var fs= require(“fs”) )
Receive parameters:
oldPath original path
newPath New path
Example:
Source code: