Skip to content

Commit d193431

Browse files
Fishrock123MylesBorins
authored andcommitted
doc: fix fs.existsSync description
Also works on directories. PR-URL: #17702 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
1 parent 444362e commit d193431

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)