code: function ensureFolder(rootFolder) {
      return rmDir(rootFolder)
      .fail(function() {
          return Promise();
      })
      .then(function() {
          return Promise.nfcall(mkdirp, rootFolder);
      });
  }
docs: Ensure that a directory exists and is empty
  
  @param {String} folder
  @return {Promise}