CleanupWorkDir removes all files in a directory Eat any errors so we can call it from defer
(fs afero.Fs, path string)
| 56 | // CleanupWorkDir removes all files in a directory |
| 57 | // Eat any errors so we can call it from defer |
| 58 | func CleanupWorkDir(fs afero.Fs, path string) { |
| 59 | err := fs.RemoveAll(path) |
| 60 | if err != nil { |
| 61 | log.Debugf("Ignoring error removing temporary work dir %s: %v", path, err) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | type ioContextKey int |
| 66 |
no outgoing calls
no test coverage detected