瀏覽代碼

分包下载-删除检查更新Xml文件

liyijie 1 年之前
父節點
當前提交
075a2d973f
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      PDF Office/Helper/FileComparisonHelper.cs

+ 6 - 0
PDF Office/Helper/FileComparisonHelper.cs

@@ -178,6 +178,12 @@ namespace PDF_Master.Helper
                             //获取OCRMD5
                             XmlAttribute ocrUrlAttributemd5 = itemNode.Attributes["ocrmd5"];
                             Settings.Default.AppProperties.OCRmodelMD5 = ocrUrlAttributemd5?.Value;
+                            //删除Xml文件
+                            string folderzipPath = System.IO.Path.Combine(App.CurrentPath, "AppXml");
+                            if (Directory.Exists(folderzipPath))
+                            {
+                                Directory.Delete(folderzipPath, true);
+                            }
                             return true;
                         }
                     }