Docs
Reference
Guides
Blog
Discord
/
node:fs/promises
/
FileHandle
/
stat
M
stat
Search the reference...
/
Docs
Reference
Guides
Blog
Discord
/
node:fs/promises
/
FileHandle
/
stat
M
stat
method
fs.promises.FileHandle.stat
stat
(
opts
?
:
StatOptions
&
{
bigint
:
false
}
)
:
Promise
<
Stats
>
;
@returns
Fulfills with an {fs.Stats} for the file.
stat
(
opts
:
StatOptions
&
{
bigint
:
true
}
)
:
Promise
<
BigIntStats
>
;
stat
(
opts
?
:
StatOptions
)
:
Promise
<
Stats
|
BigIntStats
>
;