code: func checkValidDirWithContents(name string) bool {
  	items, err := ioutil.ReadDir(name)
  	if os.IsNotExist(err) {
  		glog.Warningf("Unable to access directory %q: %v", name, err)
  	}
  	return !(err != nil || len(items) == 0)
  }
docs: // checkValidDirWithContents returns true if the parameter provided is a valid,
  // accessible and non-empty directory.