aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Mono/IO/FileSystemFactory.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-10-31 10:03:23 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-10-31 10:03:23 -0400
commit6c8d9192985036acb3d1fe626ed57980bb862d6a (patch)
tree94d59b266b877bf0b073c5e3291cb2822dc055f7 /MediaBrowser.Server.Mono/IO/FileSystemFactory.cs
parent579b507f7fa322fdf8a746b6e787015d0567e2a6 (diff)
replace file system calls with IFileSystem when needed
Diffstat (limited to 'MediaBrowser.Server.Mono/IO/FileSystemFactory.cs')
-rw-r--r--MediaBrowser.Server.Mono/IO/FileSystemFactory.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Mono/IO/FileSystemFactory.cs b/MediaBrowser.Server.Mono/IO/FileSystemFactory.cs
new file mode 100644
index 000000000..4a424a282
--- /dev/null
+++ b/MediaBrowser.Server.Mono/IO/FileSystemFactory.cs
@@ -0,0 +1,21 @@
+using MediaBrowser.Common.IO;
+using MediaBrowser.Model.Logging;
+using MediaBrowser.Common.Implementations.IO;
+
+namespace MediaBrowser.ServerApplication.IO
+{
+ /// <summary>
+ /// Class FileSystemFactory
+ /// </summary>
+ public static class FileSystemFactory
+ {
+ /// <summary>
+ /// Creates the file system manager.
+ /// </summary>
+ /// <returns>IFileSystem.</returns>
+ public static IFileSystem CreateFileSystemManager(ILogManager logManager)
+ {
+ return new CommonFileSystem(logManager.GetLogger("FileSystem"), false);
+ }
+ }
+}