mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-20 11:00:52 +08:00
🐛 第一次同步数据时报错 index.json
找不到 Fix https://github.com/siyuan-note/siyuan/issues/5133
This commit is contained in:
parent
5d7294ac5e
commit
f3bff8fdc0
@ -557,7 +557,7 @@ func syncDir2WorkspaceData(boot bool) (upsertFiles, removeFiles []string, err er
|
|||||||
|
|
||||||
modified := modifiedSyncList(unchanged)
|
modified := modifiedSyncList(unchanged)
|
||||||
metaPath := filepath.Join(util.TempDir, "sync", pathJSON) // 使用前面解密验证时下载的临时文件
|
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)
|
decryptedDataDir, upsertFiles, err := recoverSyncData(metaPath, indexPath, modified)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
util.LogErrorf("decrypt data dir failed: %s", err)
|
util.LogErrorf("decrypt data dir failed: %s", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user