From a1ee9b36809ece529234ba425915911e7a2ad655 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Wed, 20 Jan 2021 18:40:51 +0100 Subject: [PATCH] fs: add explicit note about undefined path when recursive PR-URL: https://github.com/nodejs/node/pull/37010 Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell --- doc/api/fs.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index 86c4b0fe6b978b..86d2b578fff1f5 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2608,6 +2608,8 @@ Asynchronously creates a directory. The callback is given a possible exception and, if `recursive` is `true`, the first directory path created, `(err, [path])`. +`path` can still be `undefined` when `recursive` is `true`, if no directory was +created. The optional `options` argument can be an integer specifying `mode` (permission and sticky bits), or an object with a `mode` property and a `recursive`