code: function makeFolder(path, cb) {
    if (cb) {
      fs.mkdir(path, function (err) {
        if (err && err.code != 'EEXIST') {
          throw err;
        }
        cb();
      });
    }
  }
docs: Create a folder, throwing an error only if the error is not that the folder already exists. Effectively creates if not found.