Method description:
Read the link asynchronously.
grammar:
The code copy is as follows:
fs.readlink(path, [callback(err,linkString)])
Since this method belongs to the FS module, it is necessary to introduce the FS module before use (var fs= require("fs") )
Receive parameters:
path path
callback callback, passing 2 parameters, the link string returned by exception err and linkString
Source code:
The code copy is as follows:
fs.readlink = function(path, callback) {
callback = makeCallback(callback);
if (!nullCheck(path, callback)) return;
binding.readlink(pathModule._makeLong(path), callback);
};