Fixes some of the PhysicalFileSystem issues with paths vs relative paths, this should fix up inconsistencies.

This commit is contained in:
Shannon
2014-10-22 15:52:32 +10:00
parent 4494d8cc91
commit 9ffaa8aabb
2 changed files with 19 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ using System.IO;
namespace Umbraco.Core.IO
{
//TODO: There is no way to create a directory here without creating a file in a directory and then deleting it
//TODO: Should probably implement a rename?
public interface IFileSystem
{
@@ -15,8 +16,7 @@ namespace Umbraco.Core.IO
void DeleteDirectory(string path, bool recursive);
bool DirectoryExists(string path);
void AddFile(string path, Stream stream);
void AddFile(string path, Stream stream, bool overrideIfExists);