From 87493fe40c4267c1f341b7c340af0dde52c3aa2b Mon Sep 17 00:00:00 2001 From: jbergner Date: Sun, 11 May 2025 16:22:48 +0200 Subject: [PATCH] removeall fix --- cmd/blog/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/blog/main.go b/cmd/blog/main.go index 7492df5..83550bb 100644 --- a/cmd/blog/main.go +++ b/cmd/blog/main.go @@ -272,22 +272,22 @@ func cloneRepo(repoURL, branch, dir string) { fmt.Println(err) } - err = os.Remove("/content") + err = os.RemoveAll("/content") if err != nil { fmt.Println(err, "/content") } - err = os.Remove("/static") + err = os.RemoveAll("/static") if err != nil { fmt.Println(err, "/static") } - err = os.Remove("/pages") + err = os.RemoveAll("/pages") if err != nil { fmt.Println(err, "/pages") } - err = os.Remove("/templates") + err = os.RemoveAll("/templates") if err != nil { fmt.Println(err, "/templates") }