MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / removeChildItems

Function removeChildItems

src/toolchain.go:211–228  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

209}
210
211func removeChildItems(dir string) error {
212
213 files, err := filepath.Glob(filepath.Join(dir, "*"))
214 if err != nil {
215 return err
216 }
217
218 for _, file := range files {
219
220 err = os.RemoveAll(file)
221 if err != nil {
222 return err
223 }
224
225 }
226
227 return nil
228}
229
230// JSON
231func mapToJSON(tmpMap interface{}) string {

Callers 3

maintenanceFunction · 0.85
InitFunction · 0.85
generateStrmFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected