code: func (p *Parser) IsConfigDir(path string) bool {
  	primaryPaths, overridePaths, _ := p.dirFiles(path)
  	return (len(primaryPaths) + len(overridePaths)) > 0
  }
docs: // IsConfigDir determines whether the given path refers to a directory that
  // exists and contains at least one Terraform config file (with a .tf or
  // .tf.json extension.)