code: function ensurePath(path) {
      return new Promise(function ($return, $error) {
          var dir;
  
          dir = dirname(path);
          var $Try_1_Post = function () {
              try {
                  return $return();
              } catch ($boundEx) {
                  return $error($boundEx);
              }
          }.bind(this);var $Try_1_Catch = function (err) {
              try {
                  if (/EEXIST/.test(err.message) && err.message.indexOf(dir) != -1) {
                      return $return(path);
                  }
                  throw err;
              } catch ($boundEx) {
                  return $error($boundEx);
              }
          }.bind(this);try {
              return Promise.resolve(make(dir)).then(function ($await_4) {
                  try {
                      return $return(path);
                  } catch ($boundEx) {
                      return $Try_1_Catch($boundEx);
                  }
              }.bind(this), $Try_1_Catch);
          } catch (err) {
              $Try_1_Catch(err)
          }
      }.bind(this));
  }
docs: Make sure that a file can be created by creating all directories to which it
  belongs, e.g., ensurePath('/usr/local/test/wrote.data') will attempt to
  create /usr/local/test/ directory recursivelly.
  @param {string} path Path to the file
  @returns {Promise.<string>} Same path as passed
  @throws {Error} When the first folder in the path is non-executable