code: 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
      }
    }
  }
docs: Recursively makes all directoires, similar to mkdir -p
  @param {string} dir