doc: fix fs.existsSync description

Also works on directories.

PR-URL: https://github.com/nodejs/node/pull/17702
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
This commit is contained in:
Jeremiah Senkpiel 2017-12-15 16:50:08 -05:00
parent f2e31eb67f
commit 934490b3f6

View File

@ -1099,7 +1099,7 @@ changes:
* `path` {string|Buffer|URL}
Synchronous version of [`fs.exists()`][].
Returns `true` if the file exists, `false` otherwise.
Returns `true` if the path exists, `false` otherwise.
Note that `fs.exists()` is deprecated, but `fs.existsSync()` is not.
(The `callback` parameter to `fs.exists()` accepts parameters that are