func isDirEmpty(path string) (bool, error) {
	files, err := ioutil.ReadDir(path)
	if err != nil {
		return false, err
	}
	return len(files) == 0, nil
}
func isDirEmpty(path string) (bool, error) {
	files, err := ioutil.ReadDir(path)
	if err != nil {
		return false, err
	}
	return len(files) == 0, nil
}
func isDirEmpty ( path string ) ( bool , error ) { files , err := ioutil . ReadDir ( path ) if err != nil { return false , err } return len ( files ) == 0 , nil }
// returns true if directory is empty
returns true if directory is empty