mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-17 19:54:47 +01:00
replace file system calls with IFileSystem when needed
This commit is contained in:
21
MediaBrowser.Server.Mono/IO/FileSystemFactory.cs
Normal file
21
MediaBrowser.Server.Mono/IO/FileSystemFactory.cs
Normal file
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user