We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 472ffde commit 02e8709Copy full SHA for 02e8709
doc/api/fs.md
@@ -4126,6 +4126,10 @@ Asynchronous stat(2). The callback gets two arguments `(err, stats)` where
4126
4127
In case of an error, the `err.code` will be one of [Common System Errors][].
4128
4129
+[`fs.stat()`][] follows symbolic links, [`fs.lstat()`][] looks at the links
4130
+themselves. Therefore, it is recommended to use [`fs.lstat()`][] when the links
4131
+themselves need to be examined.
4132
+
4133
Using `fs.stat()` to check for the existence of a file before calling
4134
`fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended.
4135
Instead, user code should open/read/write the file directly and handle the
0 commit comments