From d19343147b77d0fd954d8e96b4e4f91a305eb71e Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Fri, 15 Dec 2017 16:50:08 -0500 Subject: [PATCH] doc: fix fs.existsSync description Also works on directories. PR-URL: https://github.com/nodejs/node/pull/17702 Reviewed-By: Rich Trott Reviewed-By: Vse Mozhet Byt --- doc/api/fs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index fb8d246f03d845..3a49e658e79f51 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -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