func CreateDirAll(dir string) error {
	err := TouchDirAll(dir)
	if err == nil {
		var ns []string
		ns, err = ReadDir(dir)
		if err != nil {
			return err
		}
		if len(ns) != 0 {
			err = fmt.Errorf("expected %q to be empty, got %q", dir, ns)
		}
	}
	return err
}
// CreateDirAll is similar to TouchDirAll but returns error
// if the deepest directory was not empty.
CreateDirAll is similar to TouchDirAll but returns error
if the deepest directory was not empty.
// CreateDirAll is similar to TouchDirAll but returns error // if the deepest directory was not empty .
func CreateDirAll(dir string) error {
	err := TouchDirAll(dir)
	if err == nil {
		var ns []string
		ns, err = ReadDir(dir)
		if err != nil {
			return err
		}
		if len(ns) != 0 {
			err = fmt.Errorf("expected %q to be empty, got %q", dir, ns)
		}
	}
	return err
}
func CreateDirAll ( dir string ) error { err := TouchDirAll ( dir ) if err == nil { var ns [ ] string ns , err = ReadDir ( dir ) if err != nil { return err } if len ( ns ) != 0 { err = fmt . Errorf ( " " , dir , ns ) } } return err }
CreateDirAll is similar to TouchDirAll but returns error
if the deepest directory was not empty.
CreateDirAll is similar to TouchDirAll but returns error if the deepest directory was not empty .