Files
Umbraco-CMS/src/Umbraco.Core/IO/IFileSystem.cs
T

46 lines
1.1 KiB
C#
Raw Normal View History

2012-08-13 10:04:31 -01:00
using System;
using System.Collections.Generic;
using System.IO;
using Umbraco.Core.CodeAnnotations;
2012-08-13 10:04:31 -01:00
namespace Umbraco.Core.IO
{
[UmbracoExperimentalFeature("http://issues.umbraco.org/issue/U4-1156", "Will be declared public after 4.10")]
internal interface IFileSystem
2012-08-13 10:04:31 -01:00
{
IEnumerable<string> GetDirectories(string path);
2012-08-13 10:04:31 -01:00
void DeleteDirectory(string path);
void DeleteDirectory(string path, bool recursive);
bool DirectoryExists(string path);
2012-08-13 10:04:31 -01:00
void AddFile(string path, Stream stream);
void AddFile(string path, Stream stream, bool overrideIfExists);
IEnumerable<string> GetFiles(string path);
IEnumerable<string> GetFiles(string path, string filter);
2012-08-13 10:04:31 -01:00
Stream OpenFile(string path);
void DeleteFile(string path);
bool FileExists(string path);
string GetRelativePath(string fullPathOrUrl);
string GetFullPath(string path);
string GetUrl(string path);
2012-08-13 10:04:31 -01:00
DateTimeOffset GetLastModified(string path);
DateTimeOffset GetCreated(string path);
}
}