mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-16 17:10:53 +08:00
🐛 云端同步下载文件时断点续传失效 Fix https://github.com/siyuan-note/siyuan/issues/5123
This commit is contained in:
parent
7724a68126
commit
e3e3546eea
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user