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("Remove error: path '%s'\n%v", p, err)
  9. }
  10. }