code: func (m *Meta) dirIsConfigPath(dir string) bool {
  	loader, err := m.initConfigLoader()
  	if err != nil {
  		return true
  	}
  
  	return loader.IsConfigDir(dir)
  }
docs: // dirIsConfigPath checks if the given path is a directory that contains at
  // least one Terraform configuration file (.tf or .tf.json), returning true
  // if so.
  //
  // In the unlikely event that the underlying config loader cannot be initalized,
  // this function optimistically returns true, assuming that the caller will
  // then do some other operation that requires the config loader and get an
  // error at that point.