src/node/file-util.js
function mkdirRecursive(dir) {
  var parts = path.normalize(dir).split(path.sep);
  dir = '';
  for (var i = 0; i < parts.length; i++) {
    dir += parts[i] + path.sep;
    if (!existsSync(dir)) {
      fs.mkdirSync(dir, 0x1FD); // 0775 permissions
    }
  }
}
function mkdirRecursive(dir) {
  var parts = path.normalize(dir).split(path.sep);
  dir = '';
  for (var i = 0; i < parts.length; i++) {
    dir += parts[i] + path.sep;
    if (!existsSync(dir)) {
      fs.mkdirSync(dir, 0x1FD); // 0775 permissions
    }
  }
}
function mkdirRecursive ( dir ) { var parts = path . normalize ( dir ) . split ( path . sep ) ; dir = '' ; for ( var i = 0 ; i < parts . length ; i ++ ) { dir += parts [ i ] + path . sep ; if ( ! existsSync ( dir ) ) { fs . mkdirSync ( dir , 0x1FD ) ; // 0775 permissions } } }
Recursively makes all directoires, similar to mkdir -p
@param {string} dir
Recursively makes all directoires similar to mkdir - p