fs.lstat(path[, options], callback)
path<string> | <Buffer> | <URL>options<Object>bigint<boolean> 返回的 <fs.Stats> 对象中的数值是否应为bigint。默认值:false。
callback<Function>err<Error>stats<fs.Stats>
获取路径所指向的符号链接的 <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.】