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) 文档。
path<string> | <Buffer> | <URL>options<Object>bigint<boolean> Whether the numeric values in the returned <fs.Stats> object should bebigint. Default:false.
- Returns: <Promise> Fulfills with the <fs.Stats> object for the given
symbolic link
path.
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.