Skip to content

Commit a1ee9b3

Browse files
eps1lontargos
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 0fbeab7 commit a1ee9b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/fs.md

+2
Original file line numberDiff line numberDiff line change
@@ -2608,6 +2608,8 @@ Asynchronously creates a directory.
26082608

26092609
The callback is given a possible exception and, if `recursive` is `true`, the
26102610
first directory path created, `(err, [path])`.
2611+
`path` can still be `undefined` when `recursive` is `true`, if no directory was
2612+
created.
26112613

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

0 commit comments

Comments
 (0)