Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 同步下载支持断点续传 Fix https://github.com/siyuan-note/siyuan/issues/5056

Liang Ding93763bb6d64c
diff --git a/kernel/model/sync.go b/kernel/model/sync.go
index 708a34134b..a913371e56 100644
--- a/kernel/model/sync.go
+++ b/kernel/model/sync.go
@@ -322,6 +322,8 @@ func SyncData(boot, exit, byHand bool) {
syncDownloadErrCount++
return
}
+
+ // 解密验证成功后将其移动到 sync/ 文件夹下
if err = os.Rename(tmpPathJSON, filepath.Join(localSyncDirPath, pathJSON)); nil != err {
util.PushClearMsg()
msg := fmt.Sprintf(Conf.Language(80), formatErrorMsg(err))