From f3bff8fdc0f3750e3be2c8425b0c096fb49df937 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 9 Jun 2022 11:34:43 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E7=AC=AC=E4=B8=80=E6=AC=A1=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=95=B0=E6=8D=AE=E6=97=B6=E6=8A=A5=E9=94=99=20`index?= =?UTF-8?q?.json`=20=E6=89=BE=E4=B8=8D=E5=88=B0=20Fix=20https://github.com?= =?UTF-8?q?/siyuan-note/siyuan/issues/5133?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/sync.go b/kernel/model/sync.go index 475b6c930..5ea4c026e 100644 --- a/kernel/model/sync.go +++ b/kernel/model/sync.go @@ -557,7 +557,7 @@ func syncDir2WorkspaceData(boot bool) (upsertFiles, removeFiles []string, err er modified := modifiedSyncList(unchanged) metaPath := filepath.Join(util.TempDir, "sync", pathJSON) // 使用前面解密验证时下载的临时文件 - indexPath := filepath.Join(Conf.Sync.GetSaveDir(), "index.json") + indexPath := filepath.Join(util.TempDir, "sync", "index.json") decryptedDataDir, upsertFiles, err := recoverSyncData(metaPath, indexPath, modified) if nil != err { util.LogErrorf("decrypt data dir failed: %s", err)