From e3e3546eeaf0ff1fe0f906ecea3426a41e3797ff Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 7 Jun 2022 21:35:49 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BA=91=E7=AB=AF=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6=E6=97=B6=E6=96=AD=E7=82=B9?= =?UTF-8?q?=E7=BB=AD=E4=BC=A0=E5=A4=B1=E6=95=88=20Fix=20https://github.com?= =?UTF-8?q?/siyuan-note/siyuan/issues/5123?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/sync.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/model/sync.go b/kernel/model/sync.go index 892e0efab..475b6c930 100644 --- a/kernel/model/sync.go +++ b/kernel/model/sync.go @@ -340,9 +340,8 @@ func SyncData(boot, exit, byHand bool) { Conf.Sync.Stat = msg util.PushErrMsg(msg, 7000) - metaPath := filepath.Join(Conf.Sync.GetSaveDir(), pathJSON) indexPath := filepath.Join(util.TempDir, "sync", "index.json") - _, err = syncDirUpsertWorkspaceData(metaPath, indexPath, downloadedFiles) + _, err = syncDirUpsertWorkspaceData(tmpPathJSON, indexPath, downloadedFiles) if nil != err { util.LogErrorf("upsert partially downloaded files to workspace data failed: %s", err) }