diff --git a/kernel/model/sync.go b/kernel/model/sync.go index 892e0efab..475b6c930 100644 --- a/kernel/model/sync.go +++ b/kernel/model/sync.go @@ -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) }