From ca7ca9c95e96cbb740c1bf9e13c5f40f38850fbe Mon Sep 17 00:00:00 2001 From: BeniCheni Date: Fri, 22 Jun 2018 21:37:40 -0400 Subject: [PATCH] doc: explicitly mention sync APIs with doc links of the related async APIs --- doc/api/fs.md | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index 9b518cbac1b616..a38ab3cac61660 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1143,6 +1143,9 @@ 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()`](#fschmodpath-mode-callback). + See also: chmod(2). ## fs.chown(path, uid, gid, callback) @@ -1191,6 +1194,9 @@ changes: Synchronously changes owner and group of a file. Returns `undefined`. This is the synchronous version of [`fs.chown()`][]. +For detailed information, see the documentation of + [`fs.chown()`](#fschownpath-uid-gid-callback). + See also: chown(2). ## fs.close(fd, callback) @@ -1223,6 +1229,9 @@ added: v0.1.21 Synchronous close(2). Returns `undefined`. +For detailed information, see the documentation of + [`fs.close()`](#fsclosefd-callback). + ## fs.constants * {Object} @@ -1573,6 +1582,9 @@ changes: Synchronous version of [`fs.exists()`][]. Returns `true` if the path exists, `false` otherwise. +For detailed information, see the documentation of + [`fs.exists()`](#fsexistspath-callback). + Note that `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 @@ -1610,6 +1622,9 @@ added: v0.4.7 Synchronous fchmod(2). Returns `undefined`. +For detailed information, see the documentation of + [`fs.fchmod()`](#fsfchmodfd-mode-callback). + ## fs.fchown(fd, uid, gid, callback)