fsPromises.lstat(path[, options])
path<string> | <Buffer> | <URL>options<Object>bigint<boolean> 返回的 <fs.Stats> 对象中的数值是否应为bigint。默认值:false。
- 返回:<Promise> 使用给定符号链接
path的 <fs.Stats> 对象完成。
等同于 fsPromises.stat(),除非 path 指向符号链接,在这种情况下,会对链接本身进行状态获取,而不是它指向的文件。更多细节请参考 POSIX lstat(2) 文档。
【Equivalent to fsPromises.stat() unless path refers to a symbolic link,
in which case the link itself is stat-ed, not the file that it refers to.
Refer to the POSIX lstat(2) document for more detail.】