| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a1ee9b3 commit 0e1963c
1 file 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()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments