🎨 支持多设备操作不同文档后云端同步合并 https://github.com/siyuan-note/siyuan/issues/5092

This commit is contained in:
Liang Ding 2022-06-06 11:46:32 +08:00
parent 2dfad9d996
commit 0a1fcd7910
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -205,6 +205,9 @@ func ossDownload(isBackup bool, localDirPath, cloudDirPath string, bootOrExit bo
var tmpWroteFiles int
var tmpTransferSize uint64
for upsert, _ := range upsertList {
if "/.siyuan/conf.json" == upsert { // 版本号不覆盖云端
continue
}
localUpsert := filepath.Join(localDirPath, upsert)
var info os.FileInfo
info, err = os.Stat(localUpsert)