code: function chdir(dirpath) {
    try {
      process.chdir(dirpath);
      return true;
    } catch (err) {
      cli.printErrorAndExit('Error "' + 
        err + 
        '" changing to directory: ' + 
        dirpath, 1005);
    }
    return false;
  }
docs: #endregion