code: func DirEmpty(dirPath string) (bool, error) {
  	f, err := os.Open(dirPath)
  	if err != nil {
  		logger.Debugf("Error opening dir [%s]: %+v", dirPath, err)
  		return false, errors.Wrapf(err, "error opening dir [%s]", dirPath)
  	}
  	defer f.Close()
  
  	_, err = f.Readdir(1)
  	if err == io.EOF {
  		return true, nil
  	}
  	err = errors.Wrapf(err, "error checking if dir [%s] is empty", dirPath)
  	return false, err
  }
docs: // DirEmpty returns true if the dir at dirPath is empty