RemoveAll removes files using glob.
(pattern string)
| 23 | |
| 24 | // RemoveAll removes files using glob. |
| 25 | func RemoveAll(pattern string) { |
| 26 | files, err := filepath.Glob(pattern) |
| 27 | if err != nil { |
| 28 | return |
| 29 | } |
| 30 | |
| 31 | for _, file := range files { |
| 32 | _ = os.RemoveAll(file) |
| 33 | } |
| 34 | } |
no outgoing calls