path
{string|Buffer|URL}options
{string|Object}encoding
{string} 默认值:'utf8'
。
callback
{Function}err
{Error}linkString
{string|Buffer}
异步的 readlink(2)。
回调会传入两个参数 (err, linkString)
。
可选的 options
参数可以是字符串(指定字符编码)、或具有 encoding
属性(指定用于传给回调的链接路径的字符编码)的对象。
如果 encoding
被设置为 'buffer'
,则返回的链接路径会作为 Buffer
对象传入。