MCPcopy Create free account
hub / github.com/LevInteractive/imageup / removeAll

Function removeAll

imageup.go:66–70  ·  view source on GitHub ↗

Remove all files in array. This is used to clean up something that went wrong.

(files []ImageConfig)

Source from the content-addressed store, hash-verified

64// Remove all files in array. This is used to clean up something that went
65// wrong.
66func removeAll(files []ImageConfig) {
67 for _, conf := range files {
68 go RemoveFileFromGCP(conf.FileName)
69 }
70}
71
72// UploadFile uploads a file to the server
73func handleRequest(w http.ResponseWriter, r *http.Request) {

Callers 1

handleRequestFunction · 0.85

Calls 1

RemoveFileFromGCPFunction · 0.85

Tested by

no test coverage detected