From 119405dc6ad9cef2c13bb72b45929c742058bfef Mon Sep 17 00:00:00 2001 From: tbs60 Date: Thu, 21 Dec 2023 16:16:58 +0800 Subject: [PATCH] fix:support tmp file clean with RemoveAll, issue: #160 --- src/backend/booster/bk_dist/booster/pkg/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/booster/bk_dist/booster/pkg/util.go b/src/backend/booster/bk_dist/booster/pkg/util.go index 6df4d4097..e85446b9f 100644 --- a/src/backend/booster/bk_dist/booster/pkg/util.go +++ b/src/backend/booster/bk_dist/booster/pkg/util.go @@ -238,7 +238,7 @@ func cleanDirOnlyByTime(dir string, t time.Time) { } fullpath = filepath.Join(dir, fi.Name()) blog.Infof("booster: ready remove file:%s modify time:%s", fullpath, fi.ModTime()) - os.Remove(fullpath) + os.RemoveAll(fullpath) } }