From e59a104f3a4636382d89d6904b82a2a0641739e8 Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Mon, 9 May 2022 20:52:35 +0900 Subject: [PATCH 1/2] doc: improve callback params for `fs.mkdir` fixes: https://github.com/nodejs/node/issues/43015 Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com --- doc/api/fs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index fc27ea30d1f5f1..992505293fb315 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2988,6 +2988,7 @@ changes: * `mode` {string|integer} Not supported on Windows. **Default:** `0o777`. * `callback` {Function} * `err` {Error} + * `path` {string|undefined} Asynchronously creates a directory. From d741758f531cbf85211b47699b9fe30f42babf20 Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Mon, 9 May 2022 23:27:13 +0900 Subject: [PATCH 2/2] fix: apply the specification Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com --- doc/api/fs.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 992505293fb315..43e6e3b0dcccff 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2988,7 +2988,8 @@ changes: * `mode` {string|integer} Not supported on Windows. **Default:** `0o777`. * `callback` {Function} * `err` {Error} - * `path` {string|undefined} + * `path` {string|undefined} Present only if a directory is created with + `recursive` set to `true`. Asynchronously creates a directory.