fsPromises.lstat(path[, options])
-
options
<Object>-
bigint
<boolean> 返回的 <fs.Stats> 对象中的数值是否应为bigint
。默认值:false
。¥
bigint
<boolean> Whether the numeric values in the returned <fs.Stats> object should bebigint
. Default:false
.
-
-
返回:<Promise> 使用给定符号链接
path
的 <fs.Stats> 对象实现。¥Returns: <Promise> Fulfills with the <fs.Stats> object for the given symbolic link
path
.
等效于 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.