fs.lstat(path[, options], callback)


获取路径所指向的符号链接的 <fs.Stats>。回调函数接收两个参数 (err, stats),其中 stats 是一个 <fs.Stats> 对象。lstat()stat() 完全相同,只是如果 path 是符号链接,则对链接本身进行 stat,而不是它指向的文件。

【Retrieves the <fs.Stats> for the symbolic link referred to by the path. The callback gets two arguments (err, stats) where stats is a <fs.Stats> object. lstat() is identical to stat(), except that if path is a symbolic link, then the link itself is stat-ed, not the file that it refers to.】

有关更多详细信息,请参阅 POSIX lstat(2) 文档。

【See the POSIX lstat(2) documentation for more details.】