管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2023-08-24 ffa0ad8d79cc42dfbc69143f9225e190e27185a4
修改复制复制文件夹功能
已修改1个文件
8 ■■■■ 文件已修改
DataLoader/CS/Importor.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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)