From bc0d71c0ead1222502c62ec408ce8b65ed85a849 Mon Sep 17 00:00:00 2001 From: iwko Date: Sun, 10 Jun 2018 15:28:00 +0200 Subject: [PATCH 1/7] doc: documentation of sync methods links now to async methods --- doc/api/fs.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index aa1a43f1ecc14c..01dbd3032a730b 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1140,6 +1140,8 @@ changes: Synchronously changes the permissions of a file. Returns `undefined`. This is the synchronous version of [`fs.chmod()`][]. +For detailed information, see the documentation of [`fs.chmod()`][]. + See also: chmod(2). ## fs.chown(path, uid, gid, callback) @@ -1570,10 +1572,13 @@ changes: Synchronous version of [`fs.exists()`][]. Returns `true` if the path exists, `false` otherwise. +For detailed information, see the documentation of [`fs.exists()`][]. + `fs.exists()` is deprecated, but `fs.existsSync()` is not. The `callback` parameter to `fs.exists()` accepts parameters that are inconsistent with other Node.js callbacks. `fs.existsSync()` does not use a callback. + ## fs.fchmod(fd, mode, callback)