File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2206,7 +2206,9 @@ are given to the completion callback.
2206
2206
2207
2207
The optional ` options ` argument can be an integer specifying mode (permission
2208
2208
and sticky bits), or an object with a ` mode ` property and a ` recursive `
2209
- property indicating whether parent folders should be created.
2209
+ property indicating whether parent folders should be created. Calling
2210
+ ` fs.mkdir() ` when ` path ` is a directory that exists results in an error only
2211
+ when ` recursive ` is false.
2210
2212
2211
2213
``` js
2212
2214
// Creates /tmp/a/apple, regardless of whether `/tmp` and /tmp/a exist.
@@ -4288,7 +4290,9 @@ arguments upon success.
4288
4290
4289
4291
The optional ` options ` argument can be an integer specifying mode (permission
4290
4292
and sticky bits), or an object with a ` mode ` property and a ` recursive `
4291
- property indicating whether parent folders should be created.
4293
+ property indicating whether parent folders should be created. Calling
4294
+ ` fsPromises.mkdir() ` when ` path ` is a directory that exists results in a
4295
+ rejection only when ` recursive ` is false.
4292
4296
4293
4297
### fsPromises.mkdtemp(prefix[ , options] )
4294
4298
<!-- YAML
You can’t perform that action at this time.
0 commit comments