lib/plugins/slstats/slstats.js/SlStats/toggleStats
class SlStats:  toggleStats() {
    const serverlessDirPath = path.join(os.homedir(), '.serverless');
    const statsDisabledFilePath = path.join(serverlessDirPath, 'stats-disabled');
    const statsEnabledFilePath = path.join(serverlessDirPath, 'stats-enabled');

    if (this.options.enable && !this.options.disable) {
      if (this.serverless.utils.fileExistsSync(statsDisabledFilePath)) {
        fse.renameSync(statsDisabledFilePath, statsEnabledFilePath);
      }
      this.serverless.cli.log('Stats successfully enabled');
    }
    if (this.options.disable && !this.options.enable) {
      if (this.serverless.utils.fileExistsSync(statsEnabledFilePath)) {
        fse.renameSync(statsEnabledFilePath, statsDisabledFilePath);
      }
      this.serverless.cli.log('Stats successfully disabled');
    }
  }