mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 16:24:20 +01:00
🎨 定时生成文档历史数据时清理老版本的历史文件夹
This commit is contained in:
parent
9ac2240120
commit
b0d8cac943
1 changed files with 4 additions and 4 deletions
|
|
@ -69,18 +69,18 @@ func generateDocHistory() {
|
|||
historyDir := util.HistoryDir
|
||||
clearOutdatedHistoryDir(historyDir)
|
||||
|
||||
// 以下部分是老版本的清理逻辑,暂时保留
|
||||
// 以下部分是老版本的历史数据,不再保留
|
||||
|
||||
for _, box := range Conf.GetBoxes() {
|
||||
historyDir = filepath.Join(util.DataDir, box.ID, ".siyuan", "history")
|
||||
clearOutdatedHistoryDir(historyDir)
|
||||
os.RemoveAll(historyDir)
|
||||
}
|
||||
|
||||
historyDir = filepath.Join(util.DataDir, "assets", ".siyuan", "history")
|
||||
clearOutdatedHistoryDir(historyDir)
|
||||
os.RemoveAll(historyDir)
|
||||
|
||||
historyDir = filepath.Join(util.DataDir, ".siyuan", "history")
|
||||
clearOutdatedHistoryDir(historyDir)
|
||||
os.RemoveAll(historyDir)
|
||||
}
|
||||
|
||||
func ChangeHistoryTick(minutes int) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue