🐛 云端同步下载文件时断点续传失效 Fix https://github.com/siyuan-note/siyuan/issues/5123

This commit is contained in:
Liang Ding 2022-06-07 21:35:49 +08:00
parent 7724a68126
commit e3e3546eea
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D

View File

@ -340,9 +340,8 @@ func SyncData(boot, exit, byHand bool) {
Conf.Sync.Stat = msg Conf.Sync.Stat = msg
util.PushErrMsg(msg, 7000) util.PushErrMsg(msg, 7000)
metaPath := filepath.Join(Conf.Sync.GetSaveDir(), pathJSON)
indexPath := filepath.Join(util.TempDir, "sync", "index.json") indexPath := filepath.Join(util.TempDir, "sync", "index.json")
_, err = syncDirUpsertWorkspaceData(metaPath, indexPath, downloadedFiles) _, err = syncDirUpsertWorkspaceData(tmpPathJSON, indexPath, downloadedFiles)
if nil != err { if nil != err {
util.LogErrorf("upsert partially downloaded files to workspace data failed: %s", err) util.LogErrorf("upsert partially downloaded files to workspace data failed: %s", err)
} }