From 0ceed2c569dd9e1aea7d1d8f885bd632e5a0636e 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 9ea03f02748cbd..713002ccf3f6a2 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