From 93763bb6d64c9b82c1ce5160eb599111eceaa757 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 31 May 2022 15:39:54 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=90=8C=E6=AD=A5=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=96=AD=E7=82=B9=E7=BB=AD=E4=BC=A0=20Fix=20?= =?UTF-8?q?https://github.com/siyuan-note/siyuan/issues/5056?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/sync.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/model/sync.go b/kernel/model/sync.go index 708a34134..a913371e5 100644 --- a/kernel/model/sync.go +++ b/kernel/model/sync.go @@ -322,6 +322,8 @@ func SyncData(boot, exit, byHand bool) { syncDownloadErrCount++ return } + + // 解密验证成功后将其移动到 sync/ 文件夹下 if err = os.Rename(tmpPathJSON, filepath.Join(localSyncDirPath, pathJSON)); nil != err { util.PushClearMsg() msg := fmt.Sprintf(Conf.Language(80), formatErrorMsg(err))