Пример #1
0
 /// <summary>
 /// 返回物理路径
 /// </summary>
 /// <param name="FileName"></param>
 /// <param name="Path"></param>
 /// <returns></returns>
 private static string PhysicsPath(string FileName, string Path = "")
 {
     Path = Utils.PathHandle(Path);
     if (!string.IsNullOrEmpty(Path))
     {
         Path += "\\";
     }
     Path = "~\\App_Data\\" + Path;
     Path = HttpContext.Current.Server.MapPath(Path);
     if (!Directory.Exists(Path))
     {
         Directory.CreateDirectory(Path);
     }
     return(Path + FileName);
 }