file.go 200 B

123456789101112
  1. package util
  2. import "os"
  3. // RemoveAll directory
  4. func RemoveAll(path ...string) {
  5. var err error
  6. for _, p := range path {
  7. err = os.RemoveAll(p)
  8. Check(err, "Remove error: path '%s'\n%v", p)
  9. }
  10. }