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 MylesBorins committed Feb 11, 2018
1 parent 81f23e7 commit 5efcd3d
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 @@ -799,7 +799,7 @@ added: v0.1.21
* `path` {string|Buffer}

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 5efcd3d

Please sign in to comment.