PageRenderTime 20ms CodeModel.GetById 19ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/app/node_modules/jade/node_modules/mkdirp/examples/pow.js.rej

https://bitbucket.org/jorritposthuma/inventory-counter-mobile
Unknown | 19 lines | 18 code | 1 blank | 0 comment | 0 complexity | 7be82534b60ae0e9078d9740979f7e79 MD5 | raw file
Possible License(s): MIT, Apache-2.0
 1--- examples/pow.js
 2+++ examples/pow.js
 3@@ -1,6 +1,15 @@
 4-var mkdirp = require('mkdirp').mkdirp;
 5+var mkdirp = require('../').mkdirp,
 6+    mkdirpSync = require('../').mkdirpSync;
 7 
 8 mkdirp('/tmp/foo/bar/baz', 0755, function (err) {
 9     if (err) console.error(err)
10     else console.log('pow!')
11 });
12+
13+try {
14+  mkdirpSync('/tmp/bar/foo/baz', 0755);
15+  console.log('double pow!');
16+}
17+catch (ex) {
18+  console.log(ex);
19+}