fs.lstat(path[, options], callback)
-
options
<Object>-
bigint
<boolean> 返回的 <fs.Stats> 对象中的数值是否应为bigint
。默认值:false
。¥
bigint
<boolean> Whether the numeric values in the returned <fs.Stats> object should bebigint
. Default:false
.
-
-
callback
<Function>-
err
<Error> -
stats
<fs.Stats>
-
获取路径引用的符号链接的 <fs.Stats>。回调有两个参数 (err, stats)
,其中 stats
是 <fs.Stats> 对象。lstat()
与 stat()
相同,除了如果 path
是符号链接,则被统计的是链接本身,而不是它引用的文件。
¥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.