Skip to content

Commit 432a571

Browse files
eps1lonjasnell
authored andcommitted
fs: add explicit note about undefined path when recursive
PR-URL: #37010 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent ea2e2df commit 432a571

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/fs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2642,6 +2642,8 @@ Asynchronously creates a directory.
26422642

26432643
The callback is given a possible exception and, if `recursive` is `true`, the
26442644
first directory path created, `(err, [path])`.
2645+
`path` can still be `undefined` when `recursive` is `true`, if no directory was
2646+
created.
26452647

26462648
The optional `options` argument can be an integer specifying `mode` (permission
26472649
and sticky bits), or an object with a `mode` property and a `recursive`

0 commit comments

Comments
 (0)