Mega Code Archive

 
Categories / C# / File Stream
 

Resolve Path

#region License // (c) Intergen. // This source is subject to the Microsoft Public License (Ms-PL). // Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details. // All other rights reserved. #endregion using System; using System.Text; using System.IO; using System.Web; using System.Web.Hosting; namespace Utilities.IO {   public class FileUtils   {     public static string ResolvePath(string basePath, string relativePath)     {       string resolvedPath = Path.Combine(basePath, relativePath);       resolvedPath = Path.GetFullPath(resolvedPath);       return resolvedPath;     }   } }