mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
6abd4599af
commit
9c8d0366b3
1 file changed
+1
-1
+1
-1
@@ -799,7 +799,7 @@ added: v0.1.21
|
||||
* `path` {string|Buffer}
|
||||
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user