MCPcopy Create free account
hub / github.com/conforma/cli / CleanupWorkDir

Function CleanupWorkDir

internal/utils/helpers.go:58–63  ·  view source on GitHub ↗

CleanupWorkDir removes all files in a directory Eat any errors so we can call it from defer

(fs afero.Fs, path string)

Source from the content-addressed store, hash-verified

56// CleanupWorkDir removes all files in a directory
57// Eat any errors so we can call it from defer
58func 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
65type ioContextKey int
66

Callers 3

GetPolicyConfigFunction · 0.92
inspectPolicyDataCmdFunction · 0.92
inspectPolicyCmdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected