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 <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
1 parent 195da8d commit 9f3daf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/api/fs.md

Lines changed: 1 addition & 1 deletion
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)