From 8cf45a3e4a5345f704f8acef098b173ec1808251 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 13 Sep 2015 19:07:54 -0400 Subject: add more methods to IFileSystem --- MediaBrowser.Common/IO/IFileSystem.cs | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'MediaBrowser.Common/IO/IFileSystem.cs') diff --git a/MediaBrowser.Common/IO/IFileSystem.cs b/MediaBrowser.Common/IO/IFileSystem.cs index 60ba4c8ae..1feb20dcb 100644 --- a/MediaBrowser.Common/IO/IFileSystem.cs +++ b/MediaBrowser.Common/IO/IFileSystem.cs @@ -150,8 +150,8 @@ namespace MediaBrowser.Common.IO /// The path. /// if set to true [recursive]. void DeleteDirectory(string path, bool recursive); - - IEnumerable GetDirectories(string path, bool recursive = false); + + IEnumerable GetDirectories(string path, bool recursive = false); IEnumerable GetFiles(string path, bool recursive = false); @@ -169,22 +169,12 @@ namespace MediaBrowser.Common.IO bool FileExists(string path); - string ReadAllText(string path, Encoding encoding); - string ReadAllText(string path); - byte[] ReadAllBytes(string path); - - void WriteAllBytes(string path, byte[] bytes); - - void WriteAllText(string path, string text, Encoding encoding); - - void WriteAllText(string path, string text); - - void CreateFile(string path); - - void WriteAllLines(string path, string[] lines); + void WriteAllText(string path, string text); + + void WriteAllText(string path, string text, Encoding encoding); - string[] ReadAllLines(string path); + string ReadAllText(string path, Encoding encoding); } } -- cgit v1.2.3