An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 优化云端同步上传资源占用和耗时 https://github.com/siyuan-note/siyuan/issues/5093
Liang Ding8110696c308e
diff --git a/kernel/model/osssync.go b/kernel/model/osssync.goindex b5273c5a37..83172ea53a 100644--- a/kernel/model/osssync.go+++ b/kernel/model/osssync.go@@ -236,7 +236,6 @@ func ossDownload(localDirPath, cloudDirPath string, bootOrExit bool) (fetchedFil}if "/"+pathJSON == fetch {// 已经在前面验证解密的步骤中下载过了,目前位于 temp/sync/pathJSON- fetchedFilesCount++continue}diff --git a/kernel/model/sync.go b/kernel/model/sync.goindex c4955e5925..e70e1a5985 100644--- a/kernel/model/sync.go+++ b/kernel/model/sync.go@@ -329,6 +329,11 @@ func SyncData(boot, exit, byHand bool) {}fetchedFilesCount, transferSize, downloadedFiles, err := ossDownload(localSyncDirPath, "sync/"+Conf.Sync.CloudName, boot || exit)++ // 加上前面的路径映射文件统计+ fetchedFilesCount += tmpFetchedFiles+ transferSize += tmpTransferSize+if nil != err {util.PushClearProgress()msg := fmt.Sprintf(Conf.Language(80), formatErrorMsg(err))