File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,25 @@ function nextdir() {
53
53
} ) ) ;
54
54
}
55
55
56
+ // fs.mkdir creates directory with mode passed as an options object
57
+ {
58
+ const pathname = path . join ( tmpdir . path , nextdir ( ) ) ;
59
+
60
+ fs . mkdir ( pathname , { mode : 0o777 } , common . mustCall ( function ( err ) {
61
+ assert . strictEqual ( err , null ) ;
62
+ assert . strictEqual ( fs . existsSync ( pathname ) , true ) ;
63
+ } ) ) ;
64
+ }
65
+
66
+ // fs.mkdirSync creates directory with mode passed as an options object
67
+ {
68
+ const pathname = path . join ( tmpdir . path , nextdir ( ) ) ;
69
+
70
+ fs . mkdirSync ( pathname , { mode : 0o777 } ) ;
71
+
72
+ assert . strictEqual ( fs . existsSync ( pathname ) , true ) ;
73
+ }
74
+
56
75
// mkdirSync successfully creates directory from given path
57
76
{
58
77
const pathname = path . join ( tmpdir . path , nextdir ( ) ) ;
You can’t perform that action at this time.
0 commit comments