_setupPaths(opts) {
    if (!opts) {
      opts = {};
    }
    if (opts.file) {
      this.settingsFile = this._resolvePath(opts.file);
    } else {
      if (!opts.fileName && !opts.filePath) {
        this.settingsFile = process.env.ARC_SETTINGS_FILE;
      } else {
        const file = opts.fileName || 'settings.json';
        let dir;
        if (opts.filePath) {
          if (opts.appendFilePath) {
            dir = path.join(this.userSettingsDir, opts.filePath);
          } else {
            dir = this._resolvePath(opts.filePath);
          }
        } else {
          dir = this.userSettingsDir;
        }
        this.userSettingsDir = dir;
        this.settingsFile = path.join(dir, file);
      }
    }
  }
/**
   * Setups paths to settings files.
   *
   * @param {?Object} opts See constructor for description.
   */
Setups paths to settings files.
@param {?Object} opts See constructor for description.
Setups paths to settings files . @param { ?Object } opts See constructor for description .
_setupPaths(opts) {
    if (!opts) {
      opts = {};
    }
    if (opts.file) {
      this.settingsFile = this._resolvePath(opts.file);
    } else {
      if (!opts.fileName && !opts.filePath) {
        this.settingsFile = process.env.ARC_SETTINGS_FILE;
      } else {
        const file = opts.fileName || 'settings.json';
        let dir;
        if (opts.filePath) {
          if (opts.appendFilePath) {
            dir = path.join(this.userSettingsDir, opts.filePath);
          } else {
            dir = this._resolvePath(opts.filePath);
          }
        } else {
          dir = this.userSettingsDir;
        }
        this.userSettingsDir = dir;
        this.settingsFile = path.join(dir, file);
      }
    }
  }
_setupPaths ( opts ) { if ( ! opts ) { opts = { } ; } if ( opts . file ) { this . settingsFile = this . _resolvePath ( opts . file ) ; } else { if ( ! opts . fileName && ! opts . filePath ) { this . settingsFile = process . env . ARC_SETTINGS_FILE ; } else { const file = opts . fileName || 'settings.json' ; let dir ; if ( opts . filePath ) { if ( opts . appendFilePath ) { dir = path . join ( this . userSettingsDir , opts . filePath ) ; } else { dir = this . _resolvePath ( opts . filePath ) ; } } else { dir = this . userSettingsDir ; } this . userSettingsDir = dir ; this . settingsFile = path . join ( dir , file ) ; } } }
Setups paths to settings files.
Setups paths to settings files .