mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-20 15:49:36 +08:00
fix: cleaning up the cache folder caused permission issues
This commit is contained in:
@@ -47,7 +47,7 @@ func Run(_ *cobra.Command, _ []string) {
|
||||
return
|
||||
}
|
||||
common.Log.Info("正在清理缓存文件夹: ", cachePath)
|
||||
if err := os.RemoveAll(cachePath); err != nil {
|
||||
if err := common.RemoveAllInDir(cachePath); err != nil {
|
||||
common.Log.Error("清理缓存失败: ", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user