mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🐛 云端同步下载文件时断点续传失效 Fix https://github.com/siyuan-note/siyuan/issues/5123
This commit is contained in:
parent
7724a68126
commit
e3e3546eea
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue