Resolve Path

image_pdfimage_print
   
 

#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;
    }
  }
}

   
     


This entry was posted in File Stream. Bookmark the permalink.