|
|
@ -1,7 +1,7 @@ |
|
|
|
var fs = require('fs') |
|
|
|
var fs = require('fs') |
|
|
|
, crypto = require('crypto') |
|
|
|
, crypto = require('crypto') |
|
|
|
, path = require('path') |
|
|
|
, path = require('path') |
|
|
|
, childProcess = require('child_process') |
|
|
|
, mkdirp = require('mkdirp') |
|
|
|
; |
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ function ensureDirectoryExists (dir, cb) { |
|
|
|
var callback = cb || function () {} |
|
|
|
var callback = cb || function () {} |
|
|
|
; |
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
childProcess.exec('mkdir -p ' + dir.replace(/ /g, '\\ '), function (err) { return callback(err); }); |
|
|
|
mkdirp(dir, function (err) { return callback(err); }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|