summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2014-12-15 13:58:37 -0500
committercjihrig <cjihrig@gmail.com>2014-12-19 10:27:48 -0500
commit56785958565378c9ba43c5bdf5c631f7738f95ab (patch)
treef1620dc26c8c4394e34fa07cdafb7434ac9c30bb /doc
parenta5532674b09ebb10bee1bdd3c5c8ff44011a4912 (diff)
downloadnode-new-56785958565378c9ba43c5bdf5c631f7738f95ab.tar.gz
fs: deprecate exists() and existsSync()
These methods don't follow standard conventions, and shouldn't be used anyway. Fixes: https://github.com/iojs/io.js/issues/103 PR-URL: https://github.com/iojs/io.js/pull/166 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/fs.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown
index 17bc55ca5e..364bf4ef25 100644
--- a/doc/api/fs.markdown
+++ b/doc/api/fs.markdown
@@ -656,13 +656,13 @@ that leaves you vulnerable to race conditions: another process may remove the
file between the calls to `fs.exists()` and `fs.open()`. Just open the file
and handle the error when it's not there.
-`fs.exists()` will be deprecated.
+`fs.exists()` is **deprecated**.
## fs.existsSync(path)
Synchronous version of `fs.exists`.
-`fs.existsSync()` will be deprecated.
+`fs.existsSync()` is **deprecated**.
## fs.access(path[, mode], callback)