From bf1af86387804c774198e2ef4d6d737d035eacf7 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 21 三月 2023 16:41:52 +0800
Subject: [PATCH] 1

---
 ExportMap/cs/SGUtils.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ExportMap/cs/SGUtils.cs b/ExportMap/cs/SGUtils.cs
index fbe3c59..46cf5c9 100644
--- a/ExportMap/cs/SGUtils.cs
+++ b/ExportMap/cs/SGUtils.cs
@@ -219,7 +219,10 @@
                 if (meta.path.IndexOf("SG\\") > -1) continue;
 
                 string source = Path.Combine(uploadFolder, meta.path);
-                File.Move(source, Path.Combine(sgFolder, meta.id + "_" + meta.name));
+                string target = Path.Combine(sgFolder, meta.id + "_" + meta.name);
+
+                if (File.Exists(target)) File.Delete(target);
+                File.Move(source, target);
 
                 if ("mpt".Equals(meta.type))
                 {

--
Gitblit v1.9.3