覆盖拷贝配置文件到本地

This commit is contained in:
yangjiaxuan 2023-01-05 10:29:33 +08:00
parent 9aa6a96434
commit 57f5ddd9b1
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ void Dialog_uploadCfgFile::on_pbtn_upload_clicked()
strcat(cfgPath, ".json");
QFile file(filename);
QFile file2(cfgPath);
if (file2.exists())
file2.remove();
file.copy(filename, cfgPath);
HGResult ret = HGPdtToolDb_UploadFile(m_pdtToolDbuserMgr, tag.toStdString().c_str(), getStdString(filename).c_str());