From ffa0ad8d79cc42dfbc69143f9225e190e27185a4 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 24 八月 2023 15:15:06 +0800 Subject: [PATCH] 修改复制复制文件夹功能 --- DataLoader/CS/Importor.cs | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/DataLoader/CS/Importor.cs b/DataLoader/CS/Importor.cs index 845ad19..0b399c1 100644 --- a/DataLoader/CS/Importor.cs +++ b/DataLoader/CS/Importor.cs @@ -374,12 +374,16 @@ if (!Directory.Exists(vd.FilePath)) return -1; int count = 0; + vd.Meta.path = Path.Combine("" + GetSubPath(), vd.Meta.guid); + string targetFolder = Path.Combine(CommonProp.TargetPath, vd.Meta.path); + if (Directory.Exists(targetFolder)) return 0; + string[] files = Directory.GetFiles(vd.FilePath, "*", SearchOption.AllDirectories); - foreach (string file in files) + foreach (string source in files) { try { - // + string target=source.Replace(vd.FilePath, targetFolder); count++; } catch (Exception ex) -- Gitblit v1.9.3