| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d4eecb5 commit 8651ea8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4066,6 +4066,9 @@ Asynchronous stat(2). The callback gets two arguments `(err, stats)` where | |||
| 4066 | 4066 | ||
| 4067 | 4067 | In case of an error, the `err.code` will be one of [Common System Errors][]. | |
| 4068 | 4068 | ||
| 4069 | + [`fs.stat()`][] follows symbolic links. Use [`fs.lstat()`][] to look at the | ||
| 4070 | + links themselves. | ||
| 4071 | + | ||
| 4069 | 4072 | Using `fs.stat()` to check for the existence of a file before calling | |
| 4070 | 4073 | `fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. | |
| 4071 | 4074 | Instead, user code should open/read/write the file directly and handle the | |
| Back | FazBrowse Home | New Git URL |
0 commit comments