func removeDirContents(path string) error {
	files, err := ioutil.ReadDir(path)
	if err != nil {
		return err
	}

	for _, file := range files {
		if err := os.RemoveAll(filepath.Join(path, file.Name())); err != nil {
			return err
		}
	}
	return nil
}
func removeDirContents(path string) error {
	files, err := ioutil.ReadDir(path)
	if err != nil {
		return err
	}

	for _, file := range files {
		if err := os.RemoveAll(filepath.Join(path, file.Name())); err != nil {
			return err
		}
	}
	return nil
}
func removeDirContents ( path string ) error { files , err := ioutil . ReadDir ( path ) if err != nil { return err } for _ , file := range files { if err := os . RemoveAll ( filepath . Join ( path , file . Name ( ) ) ) ; err != nil { return err } } return nil }
// deletes the contents of a directory
deletes the contents of a directory