MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / RemoveAll

Function RemoveAll

utils/remove.go:25–34  ·  view source on GitHub ↗

RemoveAll removes files using glob.

(pattern string)

Source from the content-addressed store, hash-verified

23
24// RemoveAll removes files using glob.
25func 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}

Callers 15

initNodeFunction · 0.92
TestDBFunction · 0.92
TestFullProcessFunction · 0.92
initFunction · 0.92
TestNewFunction · 0.92
TestAddFunction · 0.92
TestRemoveFunction · 0.92
TestRemoveNonExistingFunction · 0.92
TestGetEmptyFunction · 0.92
TestGetSingleFunction · 0.92
TestConsistent_GetNodeFunction · 0.92

Calls

no outgoing calls

Tested by 15

initNodeFunction · 0.74
TestDBFunction · 0.74
TestFullProcessFunction · 0.74
initFunction · 0.74
TestNewFunction · 0.74
TestAddFunction · 0.74
TestRemoveFunction · 0.74
TestRemoveNonExistingFunction · 0.74
TestGetEmptyFunction · 0.74
TestGetSingleFunction · 0.74
TestConsistent_GetNodeFunction · 0.74