Skip to content

Commit 9c8d036

Browse files
Fishrock123MylesBorins
authored andcommitted
doc: fix fs.existsSync description
Also works on directories. PR-URL: #17702 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
1 parent 6abd459 commit 9c8d036

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
@@ -799,7 +799,7 @@ added: v0.1.21
799799
* `path` {string|Buffer}
800800

801801
Synchronous version of [`fs.exists()`][].
802-
Returns `true` if the file exists, `false` otherwise.
802+
Returns `true` if the path exists, `false` otherwise.
803803

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

0 commit comments

Comments
 (0)