1 |
|
2 |
|
3 |
|
4 | var fs = require('./lib/fs');
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | fs.mkdir('/tmp/example_dir/first/second/third/fourth/fifth', 0777, function (err) {
|
10 | if (err) {
|
11 | console.log(err);
|
12 | } else {
|
13 | console.log('Directory created');
|
14 | }
|
15 | });
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | fs.mkdir('/tmp/example_dir/first/second/third/fourth/fifth', 0777, true, function (err) {
|
22 | if (err) {
|
23 | console.log(err);
|
24 | } else {
|
25 | console.log('Directory created');
|
26 | }
|
27 | });
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | fs.mkdirSync('/tmp/example_sync/first/second/third/fourth/fifth', 0777, true);
|