diff options
author | cjihrig <cjihrig@gmail.com> | 2014-12-15 13:58:37 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2014-12-19 10:27:48 -0500 |
commit | 56785958565378c9ba43c5bdf5c631f7738f95ab (patch) | |
tree | f1620dc26c8c4394e34fa07cdafb7434ac9c30bb /doc | |
parent | a5532674b09ebb10bee1bdd3c5c8ff44011a4912 (diff) | |
download | node-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.markdown | 4 |
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) |