Method description:
Create a symbolic 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
type Default value: 'file', optional values 'dir', 'file', or 'junction', this item is only used on Windows (ignored on other platforms).
Note that the directory that Windows nodes need to convert is an absolute path. When using "junction", the target parameters will be automatically normalized to the absolute path.
callback callback, passing an exception parameter err
Source code: