Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cb75f56

Browse filesBrowse files
cjihrigtargos
authored andcommitted
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: #31115 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent cd310e1 commit cb75f56
Copy full SHA for cb75f56

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/fs.md‎

Copy file name to clipboardExpand all lines: doc/api/fs.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,7 @@ changes:
24332433
* `path` {string|Buffer|URL}
24342434
* `options` {Object|integer}
24352435
* `recursive` {boolean} **Default:** `false`
2436-
* `mode` {integer} Not supported on Windows. **Default:** `0o777`.
2436+
* `mode` {string|integer} Not supported on Windows. **Default:** `0o777`.
24372437
* `callback` {Function}
24382438
* `err` {Error}
24392439

@@ -2481,7 +2481,7 @@ changes:
24812481
* `path` {string|Buffer|URL}
24822482
* `options` {Object|integer}
24832483
* `recursive` {boolean} **Default:** `false`
2484-
* `mode` {integer} Not supported on Windows. **Default:** `0o777`.
2484+
* `mode` {string|integer} Not supported on Windows. **Default:** `0o777`.
24852485

24862486
Synchronously creates a directory. Returns `undefined`.
24872487
This is the synchronous version of [`fs.mkdir()`][].
@@ -4793,7 +4793,7 @@ added: v10.0.0
47934793
* `path` {string|Buffer|URL}
47944794
* `options` {Object|integer}
47954795
* `recursive` {boolean} **Default:** `false`
4796-
* `mode` {integer} Not supported on Windows. **Default:** `0o777`.
4796+
* `mode` {string|integer} Not supported on Windows. **Default:** `0o777`.
47974797
* Returns: {Promise}
47984798

47994799
Asynchronously creates a directory then resolves the `Promise` with no

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.