Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 9f3daf1

Browse files
Fishrock123boingoing
authored andcommitted
doc: fix fs.existsSync description
Also works on directories. PR-URL: nodejs/node#17702 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
1 parent 195da8d commit 9f3daf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/fs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ changes:
10991099
* `path` {string|Buffer|URL}
11001100

11011101
Synchronous version of [`fs.exists()`][].
1102-
Returns `true` if the file exists, `false` otherwise.
1102+
Returns `true` if the path exists, `false` otherwise.
11031103

11041104
Note that `fs.exists()` is deprecated, but `fs.existsSync()` is not.
11051105
(The `callback` parameter to `fs.exists()` accepts parameters that are

0 commit comments

Comments
 (0)