From 6df270451ab27c477c3b27ed84b963041d7ef1d8 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 27 Dec 2019 10:20:31 -0500 Subject: [PATCH] doc: update mode type for mkdir() functions This commit updates the documentation for fs.mkdir(), fs.mkdirSync(), and fsPromises.mkdir() to reflect the fact that their mode option can be a string. PR-URL: https://github.com/nodejs/node/pull/31115 Reviewed-By: Ruben Bridgewater Reviewed-By: Rich Trott Reviewed-By: David Carlier Reviewed-By: Luigi Pinca --- doc/api/fs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 0b1a1eae993a65..3768f0309ffff1 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2433,7 +2433,7 @@ changes: * `path` {string|Buffer|URL} * `options` {Object|integer} * `recursive` {boolean} **Default:** `false` - * `mode` {integer} Not supported on Windows. **Default:** `0o777`. + * `mode` {string|integer} Not supported on Windows. **Default:** `0o777`. * `callback` {Function} * `err` {Error} @@ -2481,7 +2481,7 @@ changes: * `path` {string|Buffer|URL} * `options` {Object|integer} * `recursive` {boolean} **Default:** `false` - * `mode` {integer} Not supported on Windows. **Default:** `0o777`. + * `mode` {string|integer} Not supported on Windows. **Default:** `0o777`. Synchronously creates a directory. Returns `undefined`. This is the synchronous version of [`fs.mkdir()`][]. @@ -4793,7 +4793,7 @@ added: v10.0.0 * `path` {string|Buffer|URL} * `options` {Object|integer} * `recursive` {boolean} **Default:** `false` - * `mode` {integer} Not supported on Windows. **Default:** `0o777`. + * `mode` {string|integer} Not supported on Windows. **Default:** `0o777`. * Returns: {Promise} Asynchronously creates a directory then resolves the `Promise` with no