File: chat-websocket/node_modules/express/node_modules/mkdirp/examples/pow.js.rej

Recommend this page to a friend!
  Classes of Igor Escobar   Terminal Crossword   chat-websocket/node_modules/express/node_modules/mkdirp/examples/pow.js.rej   Download  
File: chat-websocket/node_modules/express/node_modules/mkdirp/examples/pow.js.rej
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Terminal Crossword
Generate a crosswords board on a text console
Author: By
Last change:
Date: 2 years ago
Size: 420 bytes
 

Contents

Class file image Download
--- examples/pow.js +++ examples/pow.js @@ -1,6 +1,15 @@ -var mkdirp = require('mkdirp').mkdirp; +var mkdirp = require('../').mkdirp, + mkdirpSync = require('../').mkdirpSync; mkdirp('/tmp/foo/bar/baz', 0755, function (err) { if (err) console.error(err) else console.log('pow!') }); + +try { + mkdirpSync('/tmp/bar/foo/baz', 0755); + console.log('double pow!'); +} +catch (ex) { + console.log(ex); +}