diff --git a/kernel/model/osssync.go b/kernel/model/osssync.go index b5273c5a3..83172ea53 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.go index c4955e592..e70e1a598 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))