Skip to content
Permalink
Browse files

doc: fix fs.existsSync description

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 Dec 15, 2017
1 parent 6abd459 commit 9c8d0366b380dfd5755082b0a0e3b9ba267d19ed
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/api/fs.md
@@ -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

0 comments on commit 9c8d036

Please sign in to comment.
You can’t perform that action at this time.