Fixes PhysicalFileSystem to use IOHelper instead of HostingEnvironment. Removes all references to new IFileSystem's that canont be supported currently, leaving only the media file system.

Updates all code to use PhysicalFileSystem in place of what 'could' eventually be an abstracted IFileSystem. Updates unit tests
accordingly.
This commit is contained in:
Shannon Deminick
2013-01-14 03:04:09 +03:00
parent 880cafb0a9
commit 98a171266e
11 changed files with 48 additions and 93 deletions

View File

@@ -18,7 +18,7 @@ namespace Umbraco.Core.IO
public PhysicalFileSystem(string virtualRoot)
{
RootPath = System.Web.Hosting.HostingEnvironment.MapPath(virtualRoot);
RootPath = IOHelper.MapPath(virtualRoot);
_rootUrl = VirtualPathUtility.ToAbsolute(virtualRoot);
}