BlogEngine.Core.Providers.XmlFileSystemProvider.BlogAbsolutePath C# (CSharp) Method

BlogAbsolutePath() private static method

gets the absolute file path from a virtual path.
private static BlogAbsolutePath ( string VirtualPath ) : string
VirtualPath string the virtual path
return string
        private static string BlogAbsolutePath(string VirtualPath)
        {
            //VirtualPath = VirtualPath.Trim();
            //var fileContainer = string.Concat(Blog.CurrentInstance.StorageLocation.Trim(), "files/").Trim();
            //VirtualPath = VirtualPath.ToLower().StartsWith(fileContainer.ToLower()) ? VirtualPath : string.Format("{0}{1}", fileContainer, VirtualPath);
            return HostingEnvironment.MapPath(string.IsNullOrWhiteSpace(VirtualPath) ? "~" : VirtualPath);
        }