From 9c8d0366b380dfd5755082b0a0e3b9ba267d19ed 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 5e6ebae8dc5b8c..e59fc668dc3d7e 100644 --- a/doc/api/fs.md +++ b/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