From 6eafc81a275b14cc6a2fc653f883e94c0313bc43 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 08 二月 2023 10:31:49 +0800
Subject: [PATCH] 1

---
 DataLoader/CS/Importor.cs |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/DataLoader/CS/Importor.cs b/DataLoader/CS/Importor.cs
index 55c839e..c493907 100644
--- a/DataLoader/CS/Importor.cs
+++ b/DataLoader/CS/Importor.cs
@@ -14,6 +14,14 @@
 {
     public class Importor
     {
+        private static List<String> Exclusions = new List<string>() { 
+            "jp2.aux.xml", 
+            ".midx", ".strmi", 
+            ".rrd", ".img.aux.xml", ".hdr", ".img.enp", ".img.xml", 
+            ".tfw", ".tif.ovr", ".tif.aux.xml", ".tif.enp", ".tif.xml", ".prj",
+            ".shx", ".dbf", ".cpg" //, ".prj"
+        };
+
         private static PostgreHelper _ph = null;
 
         public static PostgreHelper Helper
@@ -65,6 +73,7 @@
                 ViewData vd = new ViewData();
                 vd.ID = i + 1;
                 vd.FilePath = files[i];
+                vd.Ext = System.IO.Path.GetExtension(files[i]);
                 vd.Status = "鍑嗗";
                 viewDatas.Add(vd);
 
@@ -94,7 +103,7 @@
                 {
                     vd.Status = "鐢熸垚MD5鐮�...";
                     string guid = MD5Helper.GetMD5Hash(vd.FilePath);
-                    if (IsFileExists(guid))
+                    if (!Exclusions.Contains(vd.Ext) && IsFileExists(guid))
                     {
                         vd.Status = "宸插瓨鍦紒";
                         return;

--
Gitblit v1.9.3