Skip to content

Commit

Permalink
fix:support tmp file clean with RemoveAll, issue: TencentBlueKing#160
Browse files Browse the repository at this point in the history
  • Loading branch information
tbs60 committed Dec 21, 2023
1 parent d09f8e0 commit 119405d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/booster/bk_dist/booster/pkg/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 119405d

Please sign in to comment.