Method description:
Create a hard 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
callback callback, passing an err exception parameter
Source code: