We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab64d74 commit 36930e4Copy full SHA for 36930e4
test/parallel/test-fs-mkdir.js
@@ -53,6 +53,25 @@ function nextdir() {
53
}));
54
}
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
69
70
+ fs.mkdirSync(pathname, { mode: 0o777 });
71
72
73
74
75
// mkdirSync successfully creates directory from given path
76
{
77
const pathname = path.join(tmpdir.path, nextdir());
0 commit comments