WIP - still working on getting the template repository and models working correctly and adding some more tests.

This commit is contained in:
Shannon
2014-12-01 14:14:44 +11:00
parent 520955a8db
commit bf82a70744
7 changed files with 211 additions and 132 deletions

View File

@@ -15,7 +15,7 @@ namespace Umbraco.Core.IO
public PhysicalFileSystem(string virtualRoot)
{
if (virtualRoot == null) throw new ArgumentNullException("virtualRoot");
if (!virtualRoot.StartsWith("~/"))
if (virtualRoot.StartsWith("~/") == false)
throw new ArgumentException("The virtualRoot argument must be a virtual path and start with '~/'");
RootPath = IOHelper.MapPath(virtualRoot);
@@ -65,7 +65,7 @@ namespace Umbraco.Core.IO
public void DeleteDirectory(string path, bool recursive)
{
if (!DirectoryExists(path))
if (DirectoryExists(path) == false)
return;
try