Commit c7143a5b authored by Bastien Gounon's avatar Bastien Gounon 🐗
Browse files

unexport ClearAllFiles - not needed

parent 2f22b9f0
Pipeline #78299 passed with stage
in 51 seconds
......@@ -5,8 +5,7 @@ import (
"path/filepath"
)
// ClearAllFiles remove all files and folders inside of a given path
func ClearAllFiles(dir string) error {
func clearAllFiles(dir string) error {
d, err := os.Open(dir)
if err != nil {
return err
......
......@@ -25,7 +25,7 @@ func main() {
if userToken != serverToken {
c.String(http.StatusUnauthorized, "Permission denied.")
} else {
err := ClearAllFiles(dir)
err := clearAllFiles(dir)
if err != nil {
c.String(http.StatusInternalServerError, "Error while trying to flush the cache, please check with the system administrator: %s", err.Error())
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment