Method description:
Synchronized version of fs.link() .
Grammar:
Since this method belongs to the fs module, the fs module needs to be introduced before use (var fs= require(“fs”) )
Receive parameters:
srcpath is the path of the source directory or file
dstpath It is the path to store the converted directory. The default is the current working directory
Source code: