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 <rtrott@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
  • Loading branch information
Fishrock123 authored and MylesBorins committed Feb 12, 2018
1 parent de25556 commit a10f903
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 a10f903

Please sign in to comment.