From bd58528fbd180b408d5ddb55ac0359466a7aeb3a Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Fri, 28 Jul 2023 12:15:23 -0700 Subject: [PATCH] check os.Walk err --- server/images.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/images.go b/server/images.go index 6bd7e882..6c0e88b1 100644 --- a/server/images.go +++ b/server/images.go @@ -592,6 +592,10 @@ func DeleteModel(name string) error { return nil }) + if err != nil { + return err + } + // only delete the files which are still in the deleteMap for k, v := range deleteMap { if v {