We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
nodejs
Learn more about funding links in repositories.
Report abuse
1 parent d4eecb5 commit 8651ea8Copy full SHA for 8651ea8
doc/api/fs.md
@@ -4066,6 +4066,9 @@ Asynchronous stat(2). The callback gets two arguments `(err, stats)` where
4066
4067
In case of an error, the `err.code` will be one of [Common System Errors][].
4068
4069
+[`fs.stat()`][] follows symbolic links. Use [`fs.lstat()`][] to look at the
4070
+links themselves.
4071
+
4072
Using `fs.stat()` to check for the existence of a file before calling
4073
`fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended.
4074
Instead, user code should open/read/write the file directly and handle the
0 commit comments