Skip to content

Commit

Permalink
fs: add explicit note about undefined path when recursive
Browse files Browse the repository at this point in the history
PR-URL: #37010
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
eps1lon authored and targos committed May 1, 2021
1 parent 0fbeab7 commit a1ee9b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit a1ee9b3

Please sign in to comment.