code: function make(dir) {
      return new Promise(function ($return, $error) {
          var res, parentDir, res2;
          var $Try_2_Post = function () {
              try {
                  return $return();
              } catch ($boundEx) {
                  return $error($boundEx);
              }
          }.bind(this);var $Try_2_Catch = function (err) {
              try {
                  if (/ENOENT/.test(err.message)) {
                      parentDir = dirname(dir);
                      return Promise.resolve(make(parentDir)).then(function ($await_5) {
                          try {
                              return Promise.resolve(make(dir)).then(function ($await_6) {
                                  try {
                                      res2 = $await_6;
                                      return $return(res2);
                                  } catch ($boundEx) {
                                      return $error($boundEx);
                                  }
                              }.bind(this), $error);
                          } catch ($boundEx) {
                              return $error($boundEx);
                          }
                      }.bind(this), $error);
                  }
                  throw err;
              } catch ($boundEx) {
                  return $error($boundEx);
              }
          }.bind(this);
          try {
              return Promise.resolve(makeDir(dir)).then(function ($await_7) {
                  try {
                      res = $await_7;
                      return $return(res);
                  } catch ($boundEx) {
                      return $Try_2_Catch($boundEx);
                  }
              }.bind(this), $Try_2_Catch);
          } catch (err) {
              $Try_2_Catch(err)
          }
      }.bind(this));
  }
docs: Recursive promise-based mkdir.
  @param {string} dir Path to the directory to be created