code: func IsEmptyDir(root string) (bool, error) {
  	if _, err := os.Stat(root); err != nil && os.IsNotExist(err) {
  		return true, nil
  	}
  
  	fs, os, err := dirFiles(root)
  	if err != nil {
  		return false, err
  	}
  
  	return len(fs) == 0 && len(os) == 0, nil
  }
docs: // IsEmptyDir returns true if the directory given has no Terraform
  // configuration files.