Skip to content

Commit 0129a79

Browse files
eps1lontargos
authored andcommitted
fs: add explicit note about undefined path when recursive
PR-URL: #37010 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 96cec1e commit 0129a79

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
@@ -2632,6 +2632,8 @@ Asynchronously creates a directory.
26322632

26332633
The callback is given a possible exception and, if `recursive` is `true`, the
26342634
first directory path created, `(err, [path])`.
2635+
`path` can still be `undefined` when `recursive` is `true`, if no directory was
2636+
created.
26352637

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

0 commit comments

Comments
 (0)