From a46cd0adb5af29e8a9cf47c219475acaedfcf839 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 01 十二月 2020 17:09:00 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/WJC' --- HDL_ON/DAL/FileUtils.cs | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/HDL_ON/DAL/FileUtils.cs b/HDL_ON/DAL/FileUtils.cs index 9104bcc..3ca621b 100644 --- a/HDL_ON/DAL/FileUtils.cs +++ b/HDL_ON/DAL/FileUtils.cs @@ -1,13 +1,7 @@ 锘縰sing System; using System.IO; using System.Collections.Generic; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; using Shared; -//using HDL_ON.UI; -using HDL_ON.DAL.Net; -using HDL_ON.DAL; -using HDL_ON.Entity; namespace HDL_ON { @@ -412,6 +406,21 @@ } } + /// <summary> + /// + /// </summary> + /// <param name="fileName"></param> + /// <param name="imagePath"></param> + public static void FileCopyToRootPath(string oldPath, string fileName) + { + System.IO.FileInfo fileInfo = new System.IO.FileInfo(oldPath); + if (fileInfo.Exists) + { + fileInfo.CopyTo(Path.Combine(RootPath, fileName), true); + //Utlis.WriteLine("FileCopyToRootPath : " + Path.Combine(RootPath, fileName)); + } + } + ///// <summary> ///// 涓嬭浇鐢靛彴銆侀煶涔愩�丏LNA绛夌瓑缃戠粶鍥剧墖 ///// </summary> -- Gitblit v1.8.0