Skip to content

Commit

Permalink
doc: fix fs.existsSync description
Browse files Browse the repository at this point in the history
Also works on directories.

PR-URL: #17702
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Vse Mozhet Byt <[email protected]>
  • Loading branch information
Fishrock123 authored and gibfahn committed Jan 24, 2018
1 parent 02af31a commit 0ceed2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ changes:
* `path` {string|Buffer|URL}

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
Expand Down

0 comments on commit 0ceed2c

Please sign in to comment.