The Free Software Media System - Server Backend & API
continue file system rework
Luke Pulverenti078277ebc29b
diff --git a/Emby.Drawing/Common/ImageHeader.cs b/Emby.Drawing/Common/ImageHeader.csindex 59df5c04f4..266dcdfb8e 100644--- a/Emby.Drawing/Common/ImageHeader.cs+++ b/Emby.Drawing/Common/ImageHeader.cs@@ -5,6 +5,7 @@ using System;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;namespace Emby.Drawing.Common{diff --git a/Emby.Drawing/Emby.Drawing.csproj b/Emby.Drawing/Emby.Drawing.csprojindex 800756ee9b..c93538d614 100644--- a/Emby.Drawing/Emby.Drawing.csproj+++ b/Emby.Drawing/Emby.Drawing.csproj@@ -32,10 +32,17 @@<WarningLevel>4</WarningLevel></PropertyGroup><ItemGroup>+ <Reference Include="CommonIO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference><Reference Include="ImageMagickSharp, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"><SpecificVersion>False</SpecificVersion><HintPath>..\packages\ImageMagickSharp.1.0.0.16\lib\net45\ImageMagickSharp.dll</HintPath></Reference>+ <Reference Include="Patterns.Logging">+ <HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>+ </Reference><Reference Include="policy.2.0.taglib-sharp"><HintPath>..\packages\taglib.2.1.0.0\lib\policy.2.0.taglib-sharp.dll</HintPath></Reference>diff --git a/Emby.Drawing/GDI/DynamicImageHelpers.cs b/Emby.Drawing/GDI/DynamicImageHelpers.csindex b4a63b31e2..5cedf820db 100644--- a/Emby.Drawing/GDI/DynamicImageHelpers.cs+++ b/Emby.Drawing/GDI/DynamicImageHelpers.cs@@ -4,6 +4,7 @@ using System.Drawing;using System.Drawing.Drawing2D;using System.Drawing.Imaging;using System.IO;+using CommonIO;namespace Emby.Drawing.GDI{diff --git a/Emby.Drawing/GDI/GDIImageEncoder.cs b/Emby.Drawing/GDI/GDIImageEncoder.csindex 1eabce74e0..6d09986623 100644--- a/Emby.Drawing/GDI/GDIImageEncoder.cs+++ b/Emby.Drawing/GDI/GDIImageEncoder.cs@@ -8,6 +8,7 @@ using System.Drawing.Drawing2D;using System.Drawing.Imaging;using System.IO;using System.Linq;+using CommonIO;using ImageFormat = MediaBrowser.Model.Drawing.ImageFormat;namespace Emby.Drawing.GDIdiff --git a/Emby.Drawing/ImageMagick/ImageMagickEncoder.cs b/Emby.Drawing/ImageMagick/ImageMagickEncoder.csindex 2f8577acc7..146ee2d3fd 100644--- a/Emby.Drawing/ImageMagick/ImageMagickEncoder.cs+++ b/Emby.Drawing/ImageMagick/ImageMagickEncoder.cs@@ -8,6 +8,7 @@ using MediaBrowser.Model.Logging;using System;using System.IO;using System.Linq;+using CommonIO;using MediaBrowser.Common.IO;namespace Emby.Drawing.ImageMagickdiff --git a/Emby.Drawing/ImageMagick/PlayedIndicatorDrawer.cs b/Emby.Drawing/ImageMagick/PlayedIndicatorDrawer.csindex b5912788fa..0870b37670 100644--- a/Emby.Drawing/ImageMagick/PlayedIndicatorDrawer.cs+++ b/Emby.Drawing/ImageMagick/PlayedIndicatorDrawer.cs@@ -5,6 +5,7 @@ using MediaBrowser.Model.Drawing;using System;using System.IO;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace Emby.Drawing.ImageMagickdiff --git a/Emby.Drawing/ImageMagick/StripCollageBuilder.cs b/Emby.Drawing/ImageMagick/StripCollageBuilder.csindex 92eb1cd597..b096a49991 100644--- a/Emby.Drawing/ImageMagick/StripCollageBuilder.cs+++ b/Emby.Drawing/ImageMagick/StripCollageBuilder.cs@@ -2,6 +2,7 @@using MediaBrowser.Common.Configuration;using System;using System.Collections.Generic;+using CommonIO;using MediaBrowser.Common.IO;namespace Emby.Drawing.ImageMagickdiff --git a/Emby.Drawing/ImageMagick/UnplayedCountIndicator.cs b/Emby.Drawing/ImageMagick/UnplayedCountIndicator.csindex 92601313a5..d3d9c1e7a0 100644--- a/Emby.Drawing/ImageMagick/UnplayedCountIndicator.cs+++ b/Emby.Drawing/ImageMagick/UnplayedCountIndicator.cs@@ -3,6 +3,7 @@ using MediaBrowser.Common.Configuration;using MediaBrowser.Common.IO;using MediaBrowser.Model.Drawing;using System.Globalization;+using CommonIO;namespace Emby.Drawing.ImageMagick{diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.csindex 3e5dca9b7f..4eecaacedb 100644--- a/Emby.Drawing/ImageProcessor.cs+++ b/Emby.Drawing/ImageProcessor.cs@@ -16,6 +16,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using Emby.Drawing.Common;namespace Emby.Drawingdiff --git a/Emby.Drawing/packages.config b/Emby.Drawing/packages.configindex acbd2ee3ac..bf2f4ff743 100644--- a/Emby.Drawing/packages.config+++ b/Emby.Drawing/packages.config@@ -1,4 +1,6 @@<?xml version="1.0" encoding="utf-8"?><packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" /><package id="ImageMagickSharp" version="1.0.0.16" targetFramework="net45" />+ <package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" /></packages>\ No newline at end of filediff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.csindex 3faa6e63b4..7f4db5a89f 100644--- a/MediaBrowser.Api/ApiEntryPoint.cs+++ b/MediaBrowser.Api/ApiEntryPoint.cs@@ -15,6 +15,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Api{diff --git a/MediaBrowser.Api/ConfigurationService.cs b/MediaBrowser.Api/ConfigurationService.csindex f266180a49..f33a30892a 100644--- a/MediaBrowser.Api/ConfigurationService.cs+++ b/MediaBrowser.Api/ConfigurationService.cs@@ -11,6 +11,7 @@ using ServiceStack.Web;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;namespace MediaBrowser.Api{diff --git a/MediaBrowser.Api/EnvironmentService.cs b/MediaBrowser.Api/EnvironmentService.csindex 81b326da8f..3a31fc1d26 100644--- a/MediaBrowser.Api/EnvironmentService.cs+++ b/MediaBrowser.Api/EnvironmentService.cs@@ -9,6 +9,7 @@ using System.Collections.Generic;using System.Globalization;using System.IO;using System.Linq;+using CommonIO;namespace MediaBrowser.Api{diff --git a/MediaBrowser.Api/Images/ImageByNameService.cs b/MediaBrowser.Api/Images/ImageByNameService.csindex a6e1af516c..1e0ca34387 100644--- a/MediaBrowser.Api/Images/ImageByNameService.cs+++ b/MediaBrowser.Api/Images/ImageByNameService.cs@@ -9,6 +9,7 @@ using System;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;namespace MediaBrowser.Api.Images{diff --git a/MediaBrowser.Api/Images/ImageService.cs b/MediaBrowser.Api/Images/ImageService.csindex b8ea621375..d264b896d2 100644--- a/MediaBrowser.Api/Images/ImageService.cs+++ b/MediaBrowser.Api/Images/ImageService.cs@@ -17,6 +17,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MimeTypes = MediaBrowser.Model.Net.MimeTypes;namespace MediaBrowser.Api.Imagesdiff --git a/MediaBrowser.Api/Images/RemoteImageService.cs b/MediaBrowser.Api/Images/RemoteImageService.csindex c67ef96c96..9683632b24 100644--- a/MediaBrowser.Api/Images/RemoteImageService.cs+++ b/MediaBrowser.Api/Images/RemoteImageService.cs@@ -16,6 +16,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Api.Images{diff --git a/MediaBrowser.Api/ItemLookupService.cs b/MediaBrowser.Api/ItemLookupService.csindex 9f7f57155b..f453036d74 100644--- a/MediaBrowser.Api/ItemLookupService.cs+++ b/MediaBrowser.Api/ItemLookupService.cs@@ -16,6 +16,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Api{diff --git a/MediaBrowser.Api/ItemRefreshService.cs b/MediaBrowser.Api/ItemRefreshService.csindex 1e74b36923..af1f1c90ad 100644--- a/MediaBrowser.Api/ItemRefreshService.cs+++ b/MediaBrowser.Api/ItemRefreshService.cs@@ -4,6 +4,7 @@ using MediaBrowser.Controller.Net;using MediaBrowser.Controller.Providers;using ServiceStack;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Apidiff --git a/MediaBrowser.Api/Library/LibraryHelpers.cs b/MediaBrowser.Api/Library/LibraryHelpers.csindex 877321b777..c18c90b200 100644--- a/MediaBrowser.Api/Library/LibraryHelpers.cs+++ b/MediaBrowser.Api/Library/LibraryHelpers.cs@@ -3,6 +3,7 @@ using MediaBrowser.Controller;using System;using System.IO;using System.Linq;+using CommonIO;namespace MediaBrowser.Api.Library{diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.csindex 20fd1ef40a..319bc13fd2 100644--- a/MediaBrowser.Api/Library/LibraryService.cs+++ b/MediaBrowser.Api/Library/LibraryService.cs@@ -27,6 +27,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Api.Librarydiff --git a/MediaBrowser.Api/Library/LibraryStructureService.cs b/MediaBrowser.Api/Library/LibraryStructureService.csindex c8731637c3..42c6ef6e5a 100644--- a/MediaBrowser.Api/Library/LibraryStructureService.cs+++ b/MediaBrowser.Api/Library/LibraryStructureService.cs@@ -10,6 +10,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Api.Library{diff --git a/MediaBrowser.Api/MediaBrowser.Api.csproj b/MediaBrowser.Api/MediaBrowser.Api.csprojindex 901dd11e2a..9e70fc5f3e 100644--- a/MediaBrowser.Api/MediaBrowser.Api.csproj+++ b/MediaBrowser.Api/MediaBrowser.Api.csproj@@ -46,6 +46,13 @@<RunPostBuildEvent>Always</RunPostBuildEvent></PropertyGroup><ItemGroup>+ <Reference Include="CommonIO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference>+ <Reference Include="Patterns.Logging">+ <HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>+ </Reference><Reference Include="System" /><Reference Include="System.Core" /><Reference Include="Microsoft.CSharp" />diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.csindex 8e5061d62a..4cf97d48b9 100644--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs@@ -23,6 +23,7 @@ using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Api.Playback{diff --git a/MediaBrowser.Api/Playback/Dash/MpegDashService.cs b/MediaBrowser.Api/Playback/Dash/MpegDashService.csindex 5a36b0aa25..49d3db110b 100644--- a/MediaBrowser.Api/Playback/Dash/MpegDashService.cs+++ b/MediaBrowser.Api/Playback/Dash/MpegDashService.cs@@ -17,6 +17,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MimeTypes = MediaBrowser.Model.Net.MimeTypes;namespace MediaBrowser.Api.Playback.Dashdiff --git a/MediaBrowser.Api/Playback/Hls/BaseHlsService.cs b/MediaBrowser.Api/Playback/Hls/BaseHlsService.csindex a9a9610a97..60412159c6 100644--- a/MediaBrowser.Api/Playback/Hls/BaseHlsService.cs+++ b/MediaBrowser.Api/Playback/Hls/BaseHlsService.cs@@ -15,6 +15,7 @@ using System.IO;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Api.Playback.Hls{diff --git a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.csindex 39bdee6991..6ca2677e76 100644--- a/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs+++ b/MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs@@ -20,6 +20,7 @@ using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MimeTypes = MediaBrowser.Model.Net.MimeTypes;namespace MediaBrowser.Api.Playback.Hlsdiff --git a/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs b/MediaBrowser.Api/Playback/Hls/VideoHlsService.csindex 2d1abf7e9d..c5392b38fe 100644--- a/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs+++ b/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs@@ -8,6 +8,7 @@ using MediaBrowser.Model.IO;using MediaBrowser.Model.Serialization;using ServiceStack;using System;+using CommonIO;namespace MediaBrowser.Api.Playback.Hls{diff --git a/MediaBrowser.Api/Playback/Progressive/AudioService.cs b/MediaBrowser.Api/Playback/Progressive/AudioService.csindex 67a9cab58f..ada4761c75 100644--- a/MediaBrowser.Api/Playback/Progressive/AudioService.cs+++ b/MediaBrowser.Api/Playback/Progressive/AudioService.cs@@ -11,6 +11,7 @@ using MediaBrowser.Model.IO;using MediaBrowser.Model.Serialization;using ServiceStack;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Api.Playback.Progressive{diff --git a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.csindex aa0cda133b..61c3e9aa8f 100644--- a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs+++ b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs@@ -17,6 +17,7 @@ using System.Globalization;using System.IO;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Api.Playback.Progressive{diff --git a/MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs b/MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.csindex adedd94616..2719b1faf5 100644--- a/MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs+++ b/MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs@@ -5,6 +5,7 @@ using System;using System.Collections.Generic;using System.IO;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Api.Playback.Progressive{diff --git a/MediaBrowser.Api/Playback/Progressive/VideoService.cs b/MediaBrowser.Api/Playback/Progressive/VideoService.csindex 1dfb433879..d79040dd4c 100644--- a/MediaBrowser.Api/Playback/Progressive/VideoService.cs+++ b/MediaBrowser.Api/Playback/Progressive/VideoService.cs@@ -11,6 +11,7 @@ using MediaBrowser.Model.Serialization;using ServiceStack;using System;using System.IO;+using CommonIO;namespace MediaBrowser.Api.Playback.Progressive{diff --git a/MediaBrowser.Api/Subtitles/SubtitleService.cs b/MediaBrowser.Api/Subtitles/SubtitleService.csindex 0bfe7354d6..37034751d8 100644--- a/MediaBrowser.Api/Subtitles/SubtitleService.cs+++ b/MediaBrowser.Api/Subtitles/SubtitleService.cs@@ -15,6 +15,7 @@ using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MimeTypes = MediaBrowser.Model.Net.MimeTypes;using MediaBrowser.Common.IO;diff --git a/MediaBrowser.Api/System/SystemService.cs b/MediaBrowser.Api/System/SystemService.csindex 4ad8b3903a..a95fcb542d 100644--- a/MediaBrowser.Api/System/SystemService.cs+++ b/MediaBrowser.Api/System/SystemService.cs@@ -12,6 +12,7 @@ using System.Collections.Generic;using System.IO;using System.Linq;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Api.System{diff --git a/MediaBrowser.Api/VideosService.cs b/MediaBrowser.Api/VideosService.csindex a65bee7ef7..0cffbb42c3 100644--- a/MediaBrowser.Api/VideosService.cs+++ b/MediaBrowser.Api/VideosService.cs@@ -11,6 +11,7 @@ using System;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Api{diff --git a/MediaBrowser.Api/packages.config b/MediaBrowser.Api/packages.configindex 0cdb26bd59..3070217041 100644--- a/MediaBrowser.Api/packages.config+++ b/MediaBrowser.Api/packages.config@@ -1,4 +1,6 @@<?xml version="1.0" encoding="utf-8"?><packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" /><package id="morelinq" version="1.1.1" targetFramework="net45" />+ <package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" /></packages>\ No newline at end of filediff --git a/MediaBrowser.Common.Implementations/Archiving/ZipClient.cs b/MediaBrowser.Common.Implementations/Archiving/ZipClient.csindex 1377e9d552..0009c71937 100644--- a/MediaBrowser.Common.Implementations/Archiving/ZipClient.cs+++ b/MediaBrowser.Common.Implementations/Archiving/ZipClient.cs@@ -7,6 +7,7 @@ using SharpCompress.Reader;using SharpCompress.Reader.Zip;using System;using System.IO;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Common.Implementations.Archivingdiff --git a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs b/MediaBrowser.Common.Implementations/BaseApplicationHost.csindex af41635f38..97c856035c 100644--- a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs+++ b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs@@ -30,6 +30,7 @@ using System.Reflection;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Common.Implementations{diff --git a/MediaBrowser.Common.Implementations/Devices/DeviceId.cs b/MediaBrowser.Common.Implementations/Devices/DeviceId.csindex 39f11fabfb..4cad3cd314 100644--- a/MediaBrowser.Common.Implementations/Devices/DeviceId.cs+++ b/MediaBrowser.Common.Implementations/Devices/DeviceId.cs@@ -3,6 +3,7 @@ using MediaBrowser.Model.Logging;using System;using System.IO;using System.Text;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Common.Implementations.Devicesdiff --git a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.csindex 7157f63257..48d6744322 100644--- a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs+++ b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs@@ -17,6 +17,7 @@ using System.Net.Cache;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Common.Implementations.HttpClientManager{diff --git a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs b/MediaBrowser.Common.Implementations/IO/CommonFileSystem.csdeleted file mode 100644index f13b9b1a94..0000000000--- a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs+++ /dev/null@@ -1,559 +0,0 @@-using MediaBrowser.Model.Extensions;-using MediaBrowser.Common.IO;-using MediaBrowser.Model.Logging;-using System;-using System.IO;-using System.Text;-using System.Collections.Generic;-using System.Linq;--namespace MediaBrowser.Common.Implementations.IO-{- /// <summary>- /// Class CommonFileSystem- /// </summary>- public class CommonFileSystem : IFileSystem- {- protected ILogger Logger;-- private readonly bool _supportsAsyncFileStreams;- private char[] _invalidFileNameChars;-- public CommonFileSystem(ILogger logger, bool supportsAsyncFileStreams, bool usePresetInvalidFileNameChars)- {- Logger = logger;- _supportsAsyncFileStreams = supportsAsyncFileStreams;-- SetInvalidFileNameChars(usePresetInvalidFileNameChars);- }-- protected void SetInvalidFileNameChars(bool usePresetInvalidFileNameChars)- {- // GetInvalidFileNameChars is less restrictive in Linux/Mac than Windows, this mimic Windows behavior for mono under Linux/Mac.-- if (usePresetInvalidFileNameChars)- {- _invalidFileNameChars = new char[41] { '\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07',- '\x08', '\x09', '\x0A', '\x0B', '\x0C', '\x0D', '\x0E', '\x0F', '\x10', '\x11', '\x12',- '\x13', '\x14', '\x15', '\x16', '\x17', '\x18', '\x19', '\x1A', '\x1B', '\x1C', '\x1D',- '\x1E', '\x1F', '\x22', '\x3C', '\x3E', '\x7C', ':', '*', '?', '\\', '/' };- }- else- {- _invalidFileNameChars = Path.GetInvalidFileNameChars();- }- }-- /// <summary>- /// Determines whether the specified filename is shortcut.- /// </summary>- /// <param name="filename">The filename.</param>- /// <returns><c>true</c> if the specified filename is shortcut; otherwise, <c>false</c>.</returns>- /// <exception cref="System.ArgumentNullException">filename</exception>- public virtual bool IsShortcut(string filename)- {- if (string.IsNullOrEmpty(filename))- {- throw new ArgumentNullException("filename");- }-- var extension = Path.GetExtension(filename);-- return string.Equals(extension, ".mblink", StringComparison.OrdinalIgnoreCase);- }-- /// <summary>- /// Resolves the shortcut.- /// </summary>- /// <param name="filename">The filename.</param>- /// <returns>System.String.</returns>- /// <exception cref="System.ArgumentNullException">filename</exception>- public virtual string ResolveShortcut(string filename)- {- if (string.IsNullOrEmpty(filename))- {- throw new ArgumentNullException("filename");- }-- if (string.Equals(Path.GetExtension(filename), ".mblink", StringComparison.OrdinalIgnoreCase))- {- var path = ReadAllText(filename);-- return NormalizePath(path);- }-- return null;- }-- /// <summary>- /// Creates the shortcut.- /// </summary>- /// <param name="shortcutPath">The shortcut path.</param>- /// <param name="target">The target.</param>- /// <exception cref="System.ArgumentNullException">- /// shortcutPath- /// or- /// target- /// </exception>- public void CreateShortcut(string shortcutPath, string target)- {- if (string.IsNullOrEmpty(shortcutPath))- {- throw new ArgumentNullException("shortcutPath");- }-- if (string.IsNullOrEmpty(target))- {- throw new ArgumentNullException("target");- }-- File.WriteAllText(shortcutPath, target);- }-- /// <summary>- /// Gets the file system info.- /// </summary>- /// <param name="path">The path.</param>- /// <returns>FileSystemInfo.</returns>- public FileSystemMetadata GetFileSystemInfo(string path)- {- if (string.IsNullOrEmpty(path))- {- throw new ArgumentNullException("path");- }-- // Take a guess to try and avoid two file system hits, but we'll double-check by calling Exists- if (Path.HasExtension(path))- {- var fileInfo = new FileInfo(path);-- if (fileInfo.Exists)- {- return GetFileSystemMetadata(fileInfo);- }-- return GetFileSystemMetadata(new DirectoryInfo(path));- }- else- {- var fileInfo = new DirectoryInfo(path);-- if (fileInfo.Exists)- {- return GetFileSystemMetadata(fileInfo);- }-- return GetFileSystemMetadata(new FileInfo(path));- }- }-- public FileSystemMetadata GetFileInfo(string path)- {- if (string.IsNullOrEmpty(path))- {- throw new ArgumentNullException("path");- }-- var fileInfo = new FileInfo(path);-- return GetFileSystemMetadata(fileInfo);- }-- public FileSystemMetadata GetDirectoryInfo(string path)- {- if (string.IsNullOrEmpty(path))- {- throw new ArgumentNullException("path");- }-- var fileInfo = new DirectoryInfo(path);-- return GetFileSystemMetadata(fileInfo);- }-- private FileSystemMetadata GetFileSystemMetadata(FileSystemInfo info)- {- var result = new FileSystemMetadata();-- result.Attributes = info.Attributes;- result.Exists = info.Exists;- result.FullName = info.FullName;- result.Extension = info.Extension;- result.Name = info.Name;-- if (result.Exists)- {- var fileInfo = info as FileInfo;- if (fileInfo != null)- {- result.Length = fileInfo.Length;- result.DirectoryName = fileInfo.DirectoryName;- }-- result.CreationTimeUtc = GetCreationTimeUtc(info);- result.LastWriteTimeUtc = GetLastWriteTimeUtc(info);- }-- return result;- }-- /// <summary>- /// The space char- /// </summary>- private const char SpaceChar = ' ';-- /// <summary>- /// Takes a filename and removes invalid characters- /// </summary>- /// <param name="filename">The filename.</param>- /// <returns>System.String.</returns>- /// <exception cref="System.ArgumentNullException">filename</exception>- public string GetValidFilename(string filename)- {- if (string.IsNullOrEmpty(filename))- {- throw new ArgumentNullException("filename");- }-- var builder = new StringBuilder(filename);-- foreach (var c in _invalidFileNameChars)- {- builder = builder.Replace(c, SpaceChar);- }-- return builder.ToString();- }-- /// <summary>- /// Gets the creation time UTC.- /// </summary>- /// <param name="info">The info.</param>- /// <returns>DateTime.</returns>- public DateTime GetCreationTimeUtc(FileSystemInfo info)- {- // This could throw an error on some file systems that have dates out of range- try- {- return info.CreationTimeUtc;- }- catch (Exception ex)- {- Logger.ErrorException("Error determining CreationTimeUtc for {0}", ex, info.FullName);- return DateTime.MinValue;- }- }-- /// <summary>- /// Gets the creation time UTC.- /// </summary>- /// <param name="path">The path.</param>- /// <returns>DateTime.</returns>- public DateTime GetCreationTimeUtc(string path)- {- return GetCreationTimeUtc(GetFileSystemInfo(path));- }-- public DateTime GetCreationTimeUtc(FileSystemMetadata info)- {- return info.CreationTimeUtc;- }-- public DateTime GetLastWriteTimeUtc(FileSystemMetadata info)- {- return info.LastWriteTimeUtc;- }-- /// <summary>- /// Gets the creation time UTC.- /// </summary>- /// <param name="info">The info.</param>- /// <returns>DateTime.</returns>- public DateTime GetLastWriteTimeUtc(FileSystemInfo info)- {- // This could throw an error on some file systems that have dates out of range- try- {- return info.LastWriteTimeUtc;- }- catch (Exception ex)- {- Logger.ErrorException("Error determining LastAccessTimeUtc for {0}", ex, info.FullName);- return DateTime.MinValue;- }- }-- /// <summary>- /// Gets the last write time UTC.- /// </summary>- /// <param name="path">The path.</param>- /// <returns>DateTime.</returns>- public DateTime GetLastWriteTimeUtc(string path)- {- return GetLastWriteTimeUtc(GetFileSystemInfo(path));- }-- /// <summary>- /// Gets the file stream.- /// </summary>- /// <param name="path">The path.</param>- /// <param name="mode">The mode.</param>- /// <param name="access">The access.</param>- /// <param name="share">The share.</param>- /// <param name="isAsync">if set to <c>true</c> [is asynchronous].</param>- /// <returns>FileStream.</returns>- public Stream GetFileStream(string path, FileMode mode, FileAccess access, FileShare share, bool isAsync = false)- {- if (_supportsAsyncFileStreams && isAsync)- {- return new FileStream(path, mode, access, share, StreamDefaults.DefaultFileStreamBufferSize, true);- }-- return new FileStream(path, mode, access, share, StreamDefaults.DefaultFileStreamBufferSize);- }-- /// <summary>- /// Swaps the files.- /// </summary>- /// <param name="file1">The file1.</param>- /// <param name="file2">The file2.</param>- public void SwapFiles(string file1, string file2)- {- if (string.IsNullOrEmpty(file1))- {- throw new ArgumentNullException("file1");- }-- if (string.IsNullOrEmpty(file2))- {- throw new ArgumentNullException("file2");- }-- var temp1 = Path.GetTempFileName();- var temp2 = Path.GetTempFileName();-- // Copying over will fail against hidden files- RemoveHiddenAttribute(file1);- RemoveHiddenAttribute(file2);-- CopyFile(file1, temp1, true);- CopyFile(file2, temp2, true);-- CopyFile(temp1, file2, true);- CopyFile(temp2, file1, true);-- DeleteFile(temp1);- DeleteFile(temp2);- }-- /// <summary>- /// Removes the hidden attribute.- /// </summary>- /// <param name="path">The path.</param>- private void RemoveHiddenAttribute(string path)- {- if (string.IsNullOrEmpty(path))- {- throw new ArgumentNullException("path");- }-- var currentFile = new FileInfo(path);-- // This will fail if the file is hidden- if (currentFile.Exists)- {- if ((currentFile.Attributes & FileAttributes.Hidden) == FileAttributes.Hidden)- {- currentFile.Attributes &= ~FileAttributes.Hidden;- }- }- }-- public bool ContainsSubPath(string parentPath, string path)- {- if (string.IsNullOrEmpty(parentPath))- {- throw new ArgumentNullException("parentPath");- }-- if (string.IsNullOrEmpty(path))- {- throw new ArgumentNullException("path");- }-- return path.IndexOf(parentPath.TrimEnd(Path.DirectorySeparatorChar) + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase) != -1;- }-- public bool IsRootPath(string path)- {- if (string.IsNullOrEmpty(path))- {- throw new ArgumentNullException("path");- }-- var parent = Path.GetDirectoryName(path);-- if (!string.IsNullOrEmpty(parent))- {- return false;- }-- return true;- }-- public string NormalizePath(string path)- {- if (string.IsNullOrEmpty(path))- {- throw new ArgumentNullException("path");- }-- if (path.EndsWith(":\\", StringComparison.OrdinalIgnoreCase))- {- return path;- }-- return path.TrimEnd(Path.DirectorySeparatorChar);- }-- public string GetFileNameWithoutExtension(FileSystemMetadata info)- {- if (info.IsDirectory)- {- return info.Name;- }-- return Path.GetFileNameWithoutExtension(info.FullName);- }-- public string GetFileNameWithoutExtension(string path)- {- return Path.GetFileNameWithoutExtension(path);- }-- public bool IsPathFile(string path)- {- if (string.IsNullOrWhiteSpace(path))- {- throw new ArgumentNullException("path");- }-- // Cannot use Path.IsPathRooted because it returns false under mono when using windows-based paths, e.g. C:\\-- if (path.IndexOf("://", StringComparison.OrdinalIgnoreCase) != -1 &&- !path.StartsWith("file://", StringComparison.OrdinalIgnoreCase))- {- return false;- }- return true;-- //return Path.IsPathRooted(path);- }-- public void DeleteFile(string path)- {- File.Delete(path);- }-- public void DeleteDirectory(string path, bool recursive)- {- Directory.Delete(path, recursive);- }-- public void CreateDirectory(string path)- {- Directory.CreateDirectory(path);- }-- public IEnumerable<FileSystemMetadata> GetDirectories(string path, bool recursive = false)- {- var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly;-- return new DirectoryInfo(path).EnumerateDirectories("*", searchOption).Select(GetFileSystemMetadata);- }-- public IEnumerable<FileSystemMetadata> GetFiles(string path, bool recursive = false)- {- var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly;-- return new DirectoryInfo (path).EnumerateFiles("*", searchOption).Select(GetFileSystemMetadata);- }-- public IEnumerable<FileSystemMetadata> GetFileSystemEntries(string path, bool recursive = false)- {- var directoryInfo = new DirectoryInfo (path);- var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly;-- return directoryInfo.EnumerateDirectories("*", searchOption).Select(GetFileSystemMetadata)- .Concat(directoryInfo.EnumerateFiles("*", searchOption).Select(GetFileSystemMetadata));- }-- public Stream OpenRead(string path)- {- return File.OpenRead(path);- }-- public void CopyFile(string source, string target, bool overwrite)- {- File.Copy(source, target, overwrite);- }-- public void MoveFile(string source, string target)- {- File.Move(source, target);- }-- public void MoveDirectory(string source, string target)- {- Directory.Move(source, target);- }-- public bool DirectoryExists(string path)- {- return Directory.Exists(path);- }-- public bool FileExists(string path)- {- return File.Exists(path);- }-- public string ReadAllText(string path)- {- return File.ReadAllText(path);- }-- public void WriteAllText(string path, string text, Encoding encoding)- {- File.WriteAllText(path, text, encoding);- }-- public void WriteAllText(string path, string text)- {- File.WriteAllText(path, text);- }-- public string ReadAllText(string path, Encoding encoding)- {- return File.ReadAllText(path, encoding);- }-- public IEnumerable<string> GetDirectoryPaths(string path, bool recursive = false)- {- var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly;- return Directory.EnumerateDirectories(path, "*", searchOption);- }-- public IEnumerable<string> GetFilePaths(string path, bool recursive = false)- {- var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly;- return Directory.EnumerateFiles(path, "*", searchOption);- }-- public IEnumerable<string> GetFileSystemEntryPaths(string path, bool recursive = false)- {- var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly;- return Directory.EnumerateFileSystemEntries(path, "*", searchOption);- }- }-}diff --git a/MediaBrowser.Common.Implementations/MediaBrowser.Common.Implementations.csproj b/MediaBrowser.Common.Implementations/MediaBrowser.Common.Implementations.csprojindex eb1122902a..a195415d04 100644--- a/MediaBrowser.Common.Implementations/MediaBrowser.Common.Implementations.csproj+++ b/MediaBrowser.Common.Implementations/MediaBrowser.Common.Implementations.csproj@@ -48,10 +48,17 @@<RunPostBuildEvent>Always</RunPostBuildEvent></PropertyGroup><ItemGroup>+ <Reference Include="CommonIO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference><Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL"><SpecificVersion>False</SpecificVersion><HintPath>..\packages\NLog.4.1.1\lib\net45\NLog.dll</HintPath></Reference>+ <Reference Include="Patterns.Logging">+ <HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>+ </Reference><Reference Include="SharpCompress, Version=0.10.2.0, Culture=neutral, PublicKeyToken=beaf6f427e128133, processorArchitecture=MSIL"><SpecificVersion>False</SpecificVersion><HintPath>..\ThirdParty\SharpCompress\SharpCompress.dll</HintPath>@@ -81,7 +88,6 @@<Compile Include="Devices\DeviceId.cs" /><Compile Include="HttpClientManager\HttpClientInfo.cs" /><Compile Include="HttpClientManager\HttpClientManager.cs" />- <Compile Include="IO\CommonFileSystem.cs" /><Compile Include="IO\IsoManager.cs" /><Compile Include="Logging\LogHelper.cs" /><Compile Include="Logging\NLogger.cs" />diff --git a/MediaBrowser.Common.Implementations/ScheduledTasks/ScheduledTaskWorker.cs b/MediaBrowser.Common.Implementations/ScheduledTasks/ScheduledTaskWorker.csindex 906184c759..f2b235bd9d 100644--- a/MediaBrowser.Common.Implementations/ScheduledTasks/ScheduledTaskWorker.cs+++ b/MediaBrowser.Common.Implementations/ScheduledTasks/ScheduledTaskWorker.cs@@ -12,6 +12,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Common.Implementations.ScheduledTasksdiff --git a/MediaBrowser.Common.Implementations/ScheduledTasks/TaskManager.cs b/MediaBrowser.Common.Implementations/ScheduledTasks/TaskManager.csindex 9419bdf22a..6c72441aa8 100644--- a/MediaBrowser.Common.Implementations/ScheduledTasks/TaskManager.cs+++ b/MediaBrowser.Common.Implementations/ScheduledTasks/TaskManager.cs@@ -10,6 +10,7 @@ using System.Collections.Concurrent;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Common.Implementations.ScheduledTasksdiff --git a/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/DeleteCacheFileTask.cs b/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/DeleteCacheFileTask.csindex ec48bb5dc1..0e50f93159 100644--- a/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/DeleteCacheFileTask.cs+++ b/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/DeleteCacheFileTask.cs@@ -8,6 +8,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Common.Implementations.ScheduledTasks.Tasks{diff --git a/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/DeleteLogFileTask.cs b/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/DeleteLogFileTask.csindex ffba3d9dae..8507d31843 100644--- a/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/DeleteLogFileTask.cs+++ b/MediaBrowser.Common.Implementations/ScheduledTasks/Tasks/DeleteLogFileTask.cs@@ -7,6 +7,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Common.Implementations.ScheduledTasks.Tasks{diff --git a/MediaBrowser.Common.Implementations/Serialization/JsonSerializer.cs b/MediaBrowser.Common.Implementations/Serialization/JsonSerializer.csindex a758a0c1e1..269294b36b 100644--- a/MediaBrowser.Common.Implementations/Serialization/JsonSerializer.cs+++ b/MediaBrowser.Common.Implementations/Serialization/JsonSerializer.cs@@ -2,6 +2,7 @@using MediaBrowser.Model.Serialization;using System;using System.IO;+using CommonIO;namespace MediaBrowser.Common.Implementations.Serialization{diff --git a/MediaBrowser.Common.Implementations/Serialization/XmlSerializer.cs b/MediaBrowser.Common.Implementations/Serialization/XmlSerializer.csindex 41a59fb2b4..449c23b2d3 100644--- a/MediaBrowser.Common.Implementations/Serialization/XmlSerializer.cs+++ b/MediaBrowser.Common.Implementations/Serialization/XmlSerializer.cs@@ -3,6 +3,7 @@ using System;using System.Collections.Concurrent;using System.IO;using System.Xml;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Common.Implementations.Serializationdiff --git a/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs b/MediaBrowser.Common.Implementations/Updates/InstallationManager.csindex 12afdd8d7c..dc642a0a8f 100644--- a/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs+++ b/MediaBrowser.Common.Implementations/Updates/InstallationManager.cs@@ -19,6 +19,7 @@ using System.Linq;using System.Security.Cryptography;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Common.Implementations.Updates{diff --git a/MediaBrowser.Common.Implementations/packages.config b/MediaBrowser.Common.Implementations/packages.configindex 151a3a36d2..eb48d9d673 100644--- a/MediaBrowser.Common.Implementations/packages.config+++ b/MediaBrowser.Common.Implementations/packages.config@@ -1,5 +1,7 @@<?xml version="1.0" encoding="utf-8"?><packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" /><package id="NLog" version="4.1.0" targetFramework="net45" />+ <package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" /><package id="SimpleInjector" version="3.0.5" targetFramework="net45" /></packages>diff --git a/MediaBrowser.Common/IO/FileSystemMetadata.cs b/MediaBrowser.Common/IO/FileSystemMetadata.csdeleted file mode 100644index ba8a1b8b87..0000000000--- a/MediaBrowser.Common/IO/FileSystemMetadata.cs+++ /dev/null@@ -1,32 +0,0 @@-using System;-using System.Collections.Generic;-using System.IO;-using System.Linq;-using System.Text;-using System.Threading.Tasks;--namespace MediaBrowser.Common.IO-{- public class FileSystemMetadata- {- public FileAttributes Attributes { get; set; }-- public bool Exists { get; set; }- public string FullName { get; set; }- public string Name { get; set; }- public string Extension { get; set; }- public long Length { get; set; }- public string DirectoryName { get; set; }-- public DateTime LastWriteTimeUtc { get; set; }- public DateTime CreationTimeUtc { get; set; }-- public bool IsDirectory- {- get- {- return (Attributes & FileAttributes.Directory) == FileAttributes.Directory;- }- }- }-}diff --git a/MediaBrowser.Common/IO/IFileSystem.cs b/MediaBrowser.Common/IO/IFileSystem.csdeleted file mode 100644index e084f94ed2..0000000000--- a/MediaBrowser.Common/IO/IFileSystem.cs+++ /dev/null@@ -1,291 +0,0 @@-using System;-using System.IO;-using System.Collections.Generic;-using System.Text;--namespace MediaBrowser.Common.IO-{- /// <summary>- /// Interface IFileSystem- /// </summary>- public interface IFileSystem- {- /// <summary>- /// Determines whether the specified filename is shortcut.- /// </summary>- /// <param name="filename">The filename.</param>- /// <returns><c>true</c> if the specified filename is shortcut; otherwise, <c>false</c>.</returns>- bool IsShortcut(string filename);-- /// <summary>- /// Resolves the shortcut.- /// </summary>- /// <param name="filename">The filename.</param>- /// <returns>System.String.</returns>- string ResolveShortcut(string filename);-- /// <summary>- /// Creates the shortcut.- /// </summary>- /// <param name="shortcutPath">The shortcut path.</param>- /// <param name="target">The target.</param>- void CreateShortcut(string shortcutPath, string target);-- /// <summary>- /// Gets the file system info.- /// </summary>- /// <param name="path">The path.</param>- /// <returns>FileSystemInfo.</returns>- FileSystemMetadata GetFileSystemInfo(string path);-- /// <summary>- /// Gets the file information.- /// </summary>- /// <param name="path">The path.</param>- /// <returns>FileSystemMetadata.</returns>- FileSystemMetadata GetFileInfo(string path);-- /// <summary>- /// Gets the directory information.- /// </summary>- /// <param name="path">The path.</param>- /// <returns>FileSystemMetadata.</returns>- FileSystemMetadata GetDirectoryInfo(string path);-- /// <summary>- /// Gets the valid filename.- /// </summary>- /// <param name="filename">The filename.</param>- /// <returns>System.String.</returns>- string GetValidFilename(string filename);-- /// <summary>- /// Gets the creation time UTC.- /// </summary>- /// <param name="info">The information.</param>- /// <returns>DateTime.</returns>- DateTime GetCreationTimeUtc(FileSystemMetadata info);-- /// <summary>- /// Gets the creation time UTC.- /// </summary>- /// <param name="path">The path.</param>- /// <returns>DateTime.</returns>- DateTime GetCreationTimeUtc(string path);-- /// <summary>- /// Gets the last write time UTC.- /// </summary>- /// <param name="info">The information.</param>- /// <returns>DateTime.</returns>- DateTime GetLastWriteTimeUtc(FileSystemMetadata info);-- /// <summary>- /// Gets the last write time UTC.- /// </summary>- /// <param name="path">The path.</param>- /// <returns>DateTime.</returns>- DateTime GetLastWriteTimeUtc(string path);-- /// <summary>- /// Gets the file stream.- /// </summary>- /// <param name="path">The path.</param>- /// <param name="mode">The mode.</param>- /// <param name="access">The access.</param>- /// <param name="share">The share.</param>- /// <param name="isAsync">if set to <c>true</c> [is asynchronous].</param>- /// <returns>FileStream.</returns>- Stream GetFileStream(string path, FileMode mode, FileAccess access, FileShare share, bool isAsync = false);-- /// <summary>- /// Opens the read.- /// </summary>- /// <param name="path">The path.</param>- /// <returns>Stream.</returns>- Stream OpenRead(String path);-- /// <summary>- /// Swaps the files.- /// </summary>- /// <param name="file1">The file1.</param>- /// <param name="file2">The file2.</param>- void SwapFiles(string file1, string file2);-- /// <summary>- /// Determines whether [contains sub path] [the specified parent path].- /// </summary>- /// <param name="parentPath">The parent path.</param>- /// <param name="path">The path.</param>- /// <returns><c>true</c> if [contains sub path] [the specified parent path]; otherwise, <c>false</c>.</returns>- bool ContainsSubPath(string parentPath, string path);-- /// <summary>- /// Determines whether [is root path] [the specified path].- /// </summary>- /// <param name="path">The path.</param>- /// <returns><c>true</c> if [is root path] [the specified path]; otherwise, <c>false</c>.</returns>- bool IsRootPath(string path);-- /// <summary>- /// Normalizes the path.- /// </summary>- /// <param name="path">The path.</param>- /// <returns>System.String.</returns>- string NormalizePath(string path);-- /// <summary>- /// Gets the file name without extension.- /// </summary>- /// <param name="info">The information.</param>- /// <returns>System.String.</returns>- string GetFileNameWithoutExtension(FileSystemMetadata info);-- /// <summary>- /// Gets the file name without extension.- /// </summary>- /// <param name="path">The path.</param>- /// <returns>System.String.</returns>- string GetFileNameWithoutExtension(string path);-- /// <summary>- /// Determines whether [is path file] [the specified path].- /// </summary>- /// <param name="path">The path.</param>- /// <returns><c>true</c> if [is path file] [the specified path]; otherwise, <c>false</c>.</returns>- bool IsPathFile(string path);-- /// <summary>- /// Deletes the file.- /// </summary>- /// <param name="path">The path.</param>- void DeleteFile(string path);-- /// <summary>- /// Deletes the directory.- /// </summary>- /// <param name="path">The path.</param>- /// <param name="recursive">if set to <c>true</c> [recursive].</param>- void DeleteDirectory(string path, bool recursive);-- /// <summary>- /// Gets the directories.- /// </summary>- /// <param name="path">The path.</param>- /// <param name="recursive">if set to <c>true</c> [recursive].</param>- /// <returns>IEnumerable<DirectoryInfo>.</returns>- IEnumerable<FileSystemMetadata> GetDirectories(string path, bool recursive = false);-- /// <summary>- /// Gets the files.- /// </summary>- /// <param name="path">The path.</param>- /// <param name="recursive">if set to <c>true</c> [recursive].</param>- /// <returns>IEnumerable<FileInfo>.</returns>- IEnumerable<FileSystemMetadata> GetFiles(string path, bool recursive = false);-- /// <summary>- /// Gets the file system entries.- /// </summary>- /// <param name="path">The path.</param>- /// <param name="recursive">if set to <c>true</c> [recursive].</param>- /// <returns>IEnumerable<FileSystemMetadata>.</returns>- IEnumerable<FileSystemMetadata> GetFileSystemEntries(string path, bool recursive = false);-- /// <summary>- /// Creates the directory.- /// </summary>- /// <param name="path">The path.</param>- void CreateDirectory(string path);-- /// <summary>- /// Copies the file.- /// </summary>- /// <param name="source">The source.</param>- /// <param name="target">The target.</param>- /// <param name="overwrite">if set to <c>true</c> [overwrite].</param>- void CopyFile(string source, string target, bool overwrite);-- /// <summary>- /// Moves the file.- /// </summary>- /// <param name="source">The source.</param>- /// <param name="target">The target.</param>- void MoveFile(string source, string target);-- /// <summary>- /// Moves the directory.- /// </summary>- /// <param name="source">The source.</param>- /// <param name="target">The target.</param>- void MoveDirectory(string source, string target);-- /// <summary>- /// Directories the exists.- /// </summary>- /// <param name="path">The path.</param>- /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>- bool DirectoryExists(string path);-- /// <summary>- /// Files the exists.- /// </summary>- /// <param name="path">The path.</param>- /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>- bool FileExists(string path);-- /// <summary>- /// Reads all text.- /// </summary>- /// <param name="path">The path.</param>- /// <returns>System.String.</returns>- string ReadAllText(string path);-- /// <summary>- /// Writes all text.- /// </summary>- /// <param name="path">The path.</param>- /// <param name="text">The text.</param>- void WriteAllText(string path, string text);-- /// <summary>- /// Writes all text.- /// </summary>- /// <param name="path">The path.</param>- /// <param name="text">The text.</param>- /// <param name="encoding">The encoding.</param>- void WriteAllText(string path, string text, Encoding encoding);-- /// <summary>- /// Reads all text.- /// </summary>- /// <param name="path">The path.</param>- /// <param name="encoding">The encoding.</param>- /// <returns>System.String.</returns>- string ReadAllText(string path, Encoding encoding);-- /// <summary>- /// Gets the directory paths.- /// </summary>- /// <param name="path">The path.</param>- /// <param name="recursive">if set to <c>true</c> [recursive].</param>- /// <returns>IEnumerable<System.String>.</returns>- IEnumerable<string> GetDirectoryPaths(string path, bool recursive = false);-- /// <summary>- /// Gets the file paths.- /// </summary>- /// <param name="path">The path.</param>- /// <param name="recursive">if set to <c>true</c> [recursive].</param>- /// <returns>IEnumerable<System.String>.</returns>- IEnumerable<string> GetFilePaths(string path, bool recursive = false);-- /// <summary>- /// Gets the file system entry paths.- /// </summary>- /// <param name="path">The path.</param>- /// <param name="recursive">if set to <c>true</c> [recursive].</param>- /// <returns>IEnumerable<System.String>.</returns>- IEnumerable<string> GetFileSystemEntryPaths(string path, bool recursive = false);- }-}diff --git a/MediaBrowser.Common/MediaBrowser.Common.csproj b/MediaBrowser.Common/MediaBrowser.Common.csprojindex 0476f3f602..b2f62dd210 100644--- a/MediaBrowser.Common/MediaBrowser.Common.csproj+++ b/MediaBrowser.Common/MediaBrowser.Common.csproj@@ -60,8 +60,6 @@<Compile Include="Extensions\BaseExtensions.cs" /><Compile Include="Extensions\ResourceNotFoundException.cs" /><Compile Include="IDependencyContainer.cs" />- <Compile Include="IO\FileSystemMetadata.cs" />- <Compile Include="IO\IFileSystem.cs" /><Compile Include="IO\ProgressStream.cs" /><Compile Include="IO\StreamDefaults.cs" /><Compile Include="Configuration\IApplicationPaths.cs" />diff --git a/MediaBrowser.Controller/Entities/AggregateFolder.cs b/MediaBrowser.Controller/Entities/AggregateFolder.csindex 5af02e9bb6..14f8c1617a 100644--- a/MediaBrowser.Controller/Entities/AggregateFolder.cs+++ b/MediaBrowser.Controller/Entities/AggregateFolder.cs@@ -6,6 +6,7 @@ using System.Collections.Generic;using System.IO;using System.Linq;using System.Runtime.Serialization;+using CommonIO;using MediaBrowser.Common.IO;using MediaBrowser.Controller.Providers;diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.csindex 963f4725ad..796ba70ba3 100644--- a/MediaBrowser.Controller/Entities/BaseItem.cs+++ b/MediaBrowser.Controller/Entities/BaseItem.cs@@ -23,6 +23,7 @@ using System.Linq;using System.Runtime.Serialization;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Controller.Entities{diff --git a/MediaBrowser.Controller/Entities/CollectionFolder.cs b/MediaBrowser.Controller/Entities/CollectionFolder.csindex b299929d00..946d95a0bb 100644--- a/MediaBrowser.Controller/Entities/CollectionFolder.cs+++ b/MediaBrowser.Controller/Entities/CollectionFolder.cs@@ -8,6 +8,7 @@ using System.Linq;using System.Runtime.Serialization;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Controller.Entitiesdiff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.csindex 422c83d3ba..c3f767c0d2 100644--- a/MediaBrowser.Controller/Entities/Folder.cs+++ b/MediaBrowser.Controller/Entities/Folder.cs@@ -13,6 +13,7 @@ using System.Linq;using System.Runtime.Serialization;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Controller.Entitiesdiff --git a/MediaBrowser.Controller/Entities/IHasImages.cs b/MediaBrowser.Controller/Entities/IHasImages.csindex 55c5f7e114..ef478c516a 100644--- a/MediaBrowser.Controller/Entities/IHasImages.cs+++ b/MediaBrowser.Controller/Entities/IHasImages.cs@@ -3,6 +3,7 @@ using MediaBrowser.Model.Entities;using System.Collections.Generic;using System.IO;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Controller.Entitiesdiff --git a/MediaBrowser.Controller/Entities/Movies/Movie.cs b/MediaBrowser.Controller/Entities/Movies/Movie.csindex 8910fdbdd7..1a8148edfb 100644--- a/MediaBrowser.Controller/Entities/Movies/Movie.cs+++ b/MediaBrowser.Controller/Entities/Movies/Movie.cs@@ -8,6 +8,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Controller.Entities.Moviesdiff --git a/MediaBrowser.Controller/Entities/Video.cs b/MediaBrowser.Controller/Entities/Video.csindex 5f5743b1d0..45c497fcf9 100644--- a/MediaBrowser.Controller/Entities/Video.cs+++ b/MediaBrowser.Controller/Entities/Video.cs@@ -11,6 +11,7 @@ using System.Linq;using System.Runtime.Serialization;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Controller.Entitiesdiff --git a/MediaBrowser.Controller/IO/FileData.cs b/MediaBrowser.Controller/IO/FileData.csindex 503727e140..20dfc425e3 100644--- a/MediaBrowser.Controller/IO/FileData.cs+++ b/MediaBrowser.Controller/IO/FileData.cs@@ -5,6 +5,7 @@ using MediaBrowser.Model.Logging;using System;using System.Collections.Generic;using System.IO;+using CommonIO;namespace MediaBrowser.Controller.IO{diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.csindex 93f291aae5..843fba0d0b 100644--- a/MediaBrowser.Controller/Library/ILibraryManager.cs+++ b/MediaBrowser.Controller/Library/ILibraryManager.cs@@ -11,6 +11,7 @@ using System.Collections.Generic;using System.IO;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Controller.Librarydiff --git a/MediaBrowser.Controller/Library/ItemResolveArgs.cs b/MediaBrowser.Controller/Library/ItemResolveArgs.csindex 6534366911..90158942fb 100644--- a/MediaBrowser.Controller/Library/ItemResolveArgs.cs+++ b/MediaBrowser.Controller/Library/ItemResolveArgs.cs@@ -4,6 +4,7 @@ using System;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Controller.Librarydiff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csprojindex b20f155447..946ea34d45 100644--- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj+++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj@@ -45,9 +45,16 @@<WarningLevel>4</WarningLevel></PropertyGroup><ItemGroup>+ <Reference Include="CommonIO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference><Reference Include="Interfaces.IO"><HintPath>..\packages\Interfaces.IO.1.0.0.5\lib\portable-net45+sl4+wp71+win8+wpa81\Interfaces.IO.dll</HintPath></Reference>+ <Reference Include="Patterns.Logging">+ <HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>+ </Reference><Reference Include="System" /><Reference Include="System.Core" /><Reference Include="System.Data" />diff --git a/MediaBrowser.Controller/MediaEncoding/MediaEncoderHelpers.cs b/MediaBrowser.Controller/MediaEncoding/MediaEncoderHelpers.csindex 6b7bddcfa0..7985ec054d 100644--- a/MediaBrowser.Controller/MediaEncoding/MediaEncoderHelpers.cs+++ b/MediaBrowser.Controller/MediaEncoding/MediaEncoderHelpers.cs@@ -4,6 +4,7 @@ using System;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Controller.MediaEncodingdiff --git a/MediaBrowser.Controller/Providers/DirectoryService.cs b/MediaBrowser.Controller/Providers/DirectoryService.csindex 6890b7a7c7..cf1c3d286d 100644--- a/MediaBrowser.Controller/Providers/DirectoryService.cs+++ b/MediaBrowser.Controller/Providers/DirectoryService.cs@@ -4,6 +4,7 @@ using System.Collections.Concurrent;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Controller.Providersdiff --git a/MediaBrowser.Controller/Providers/IDirectoryService.cs b/MediaBrowser.Controller/Providers/IDirectoryService.csindex 06507d5d2d..062a109015 100644--- a/MediaBrowser.Controller/Providers/IDirectoryService.cs+++ b/MediaBrowser.Controller/Providers/IDirectoryService.cs@@ -1,5 +1,6 @@using System.Collections.Generic;using System.IO;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Controller.Providersdiff --git a/MediaBrowser.Controller/Providers/LocalImageInfo.cs b/MediaBrowser.Controller/Providers/LocalImageInfo.csindex 3b51a96f01..51916268fe 100644--- a/MediaBrowser.Controller/Providers/LocalImageInfo.cs+++ b/MediaBrowser.Controller/Providers/LocalImageInfo.cs@@ -1,4 +1,5 @@using System.IO;+using CommonIO;using MediaBrowser.Common.IO;using MediaBrowser.Model.Entities;diff --git a/MediaBrowser.Controller/Providers/MetadataRefreshOptions.cs b/MediaBrowser.Controller/Providers/MetadataRefreshOptions.csindex 097c613cbe..6f217eea2b 100644--- a/MediaBrowser.Controller/Providers/MetadataRefreshOptions.cs+++ b/MediaBrowser.Controller/Providers/MetadataRefreshOptions.cs@@ -1,4 +1,5 @@using System.Linq;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Controller.Providersdiff --git a/MediaBrowser.Controller/Resolvers/IItemResolver.cs b/MediaBrowser.Controller/Resolvers/IItemResolver.csindex 660a6a87ab..f747c055e1 100644--- a/MediaBrowser.Controller/Resolvers/IItemResolver.cs+++ b/MediaBrowser.Controller/Resolvers/IItemResolver.cs@@ -3,6 +3,7 @@ using MediaBrowser.Controller.Library;using MediaBrowser.Controller.Providers;using System.Collections.Generic;using System.IO;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Controller.Resolversdiff --git a/MediaBrowser.Controller/packages.config b/MediaBrowser.Controller/packages.configindex c320ed9d9a..c03c15de8e 100644--- a/MediaBrowser.Controller/packages.config+++ b/MediaBrowser.Controller/packages.config@@ -1,5 +1,7 @@<?xml version="1.0" encoding="utf-8"?><packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" /><package id="Interfaces.IO" version="1.0.0.5" targetFramework="net45" /><package id="morelinq" version="1.1.1" targetFramework="net45" />+ <package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" /></packages>\ No newline at end of filediff --git a/MediaBrowser.Dlna/DlnaManager.cs b/MediaBrowser.Dlna/DlnaManager.csindex 0fd3cec89b..be49c0f893 100644--- a/MediaBrowser.Dlna/DlnaManager.cs+++ b/MediaBrowser.Dlna/DlnaManager.cs@@ -17,6 +17,7 @@ using System.IO;using System.Linq;using System.Text;using System.Text.RegularExpressions;+using CommonIO;namespace MediaBrowser.Dlna{diff --git a/MediaBrowser.Dlna/MediaBrowser.Dlna.csproj b/MediaBrowser.Dlna/MediaBrowser.Dlna.csprojindex c49cbc6548..325df86d1c 100644--- a/MediaBrowser.Dlna/MediaBrowser.Dlna.csproj+++ b/MediaBrowser.Dlna/MediaBrowser.Dlna.csproj@@ -13,6 +13,8 @@<ProductVersion>10.0.0</ProductVersion><SchemaVersion>2.0</SchemaVersion><TargetFrameworkVersion>v4.5</TargetFrameworkVersion>+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>+ <RestorePackages>true</RestorePackages></PropertyGroup><PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "><DebugSymbols>true</DebugSymbols>@@ -39,6 +41,13 @@<WarningLevel>4</WarningLevel></PropertyGroup><ItemGroup>+ <Reference Include="CommonIO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference>+ <Reference Include="Patterns.Logging">+ <HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>+ </Reference><Reference Include="System" /><Reference Include="System.Core" /><Reference Include="System.Xml.Linq" />@@ -230,6 +239,9 @@<SubType>Designer</SubType></EmbeddedResource></ItemGroup>+ <ItemGroup>+ <None Include="packages.config" />+ </ItemGroup><Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /><!-- To modify your build process, add your task inside one of the targets below and uncomment it.Other similar extension points exist, see Microsoft.Common.targets.diff --git a/MediaBrowser.Dlna/packages.config b/MediaBrowser.Dlna/packages.confignew file mode 100644index 0000000000..b0aea0390e--- /dev/null+++ b/MediaBrowser.Dlna/packages.config@@ -0,0 +1,5 @@+<?xml version="1.0" encoding="utf-8"?>+<packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" />+ <package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" />+</packages>\ No newline at end of filediff --git a/MediaBrowser.LocalMetadata/BaseXmlProvider.cs b/MediaBrowser.LocalMetadata/BaseXmlProvider.csindex fb96cadc3c..0364eaf995 100644--- a/MediaBrowser.LocalMetadata/BaseXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/BaseXmlProvider.cs@@ -5,6 +5,7 @@ using System;using System.IO;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.LocalMetadata{diff --git a/MediaBrowser.LocalMetadata/Images/CollectionFolderImageProvider.cs b/MediaBrowser.LocalMetadata/Images/CollectionFolderImageProvider.csindex 90f00ff022..de2f551616 100644--- a/MediaBrowser.LocalMetadata/Images/CollectionFolderImageProvider.cs+++ b/MediaBrowser.LocalMetadata/Images/CollectionFolderImageProvider.cs@@ -2,6 +2,7 @@using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Providers;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.LocalMetadata.Images{diff --git a/MediaBrowser.LocalMetadata/Images/EpisodeLocalImageProvider.cs b/MediaBrowser.LocalMetadata/Images/EpisodeLocalImageProvider.csindex bafb230110..7e64c9f5d6 100644--- a/MediaBrowser.LocalMetadata/Images/EpisodeLocalImageProvider.cs+++ b/MediaBrowser.LocalMetadata/Images/EpisodeLocalImageProvider.cs@@ -7,6 +7,7 @@ using System;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;namespace MediaBrowser.LocalMetadata.Images{diff --git a/MediaBrowser.LocalMetadata/Images/ImagesByNameImageProvider.cs b/MediaBrowser.LocalMetadata/Images/ImagesByNameImageProvider.csindex 52cff0aa96..dc6f2ae933 100644--- a/MediaBrowser.LocalMetadata/Images/ImagesByNameImageProvider.cs+++ b/MediaBrowser.LocalMetadata/Images/ImagesByNameImageProvider.cs@@ -1,5 +1,6 @@using System.Collections.Generic;using System.IO;+using CommonIO;using MediaBrowser.Common.IO;using MediaBrowser.Controller.Configuration;using MediaBrowser.Controller.Entities;diff --git a/MediaBrowser.LocalMetadata/Images/InternalMetadataFolderImageProvider.cs b/MediaBrowser.LocalMetadata/Images/InternalMetadataFolderImageProvider.csindex f118c2763f..664603315b 100644--- a/MediaBrowser.LocalMetadata/Images/InternalMetadataFolderImageProvider.cs+++ b/MediaBrowser.LocalMetadata/Images/InternalMetadataFolderImageProvider.cs@@ -5,6 +5,7 @@ using MediaBrowser.Controller.Entities.Audio;using MediaBrowser.Controller.Providers;using System.Collections.Generic;using System.IO;+using CommonIO;namespace MediaBrowser.LocalMetadata.Images{diff --git a/MediaBrowser.LocalMetadata/Images/LocalImageProvider.cs b/MediaBrowser.LocalMetadata/Images/LocalImageProvider.csindex 90aa72a6aa..3c9736429d 100644--- a/MediaBrowser.LocalMetadata/Images/LocalImageProvider.cs+++ b/MediaBrowser.LocalMetadata/Images/LocalImageProvider.cs@@ -9,6 +9,7 @@ using System.Collections.Generic;using System.Globalization;using System.IO;using System.Linq;+using CommonIO;namespace MediaBrowser.LocalMetadata.Images{diff --git a/MediaBrowser.LocalMetadata/MediaBrowser.LocalMetadata.csproj b/MediaBrowser.LocalMetadata/MediaBrowser.LocalMetadata.csprojindex 14cec36276..f31aebd516 100644--- a/MediaBrowser.LocalMetadata/MediaBrowser.LocalMetadata.csproj+++ b/MediaBrowser.LocalMetadata/MediaBrowser.LocalMetadata.csproj@@ -11,6 +11,8 @@<AssemblyName>MediaBrowser.LocalMetadata</AssemblyName><TargetFrameworkVersion>v4.5</TargetFrameworkVersion><FileAlignment>512</FileAlignment>+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>+ <RestorePackages>true</RestorePackages></PropertyGroup><PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "><DebugSymbols>true</DebugSymbols>@@ -30,6 +32,13 @@<WarningLevel>4</WarningLevel></PropertyGroup><ItemGroup>+ <Reference Include="CommonIO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference>+ <Reference Include="Patterns.Logging">+ <HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>+ </Reference><Reference Include="System" /><Reference Include="System.Core" /><Reference Include="System.Xml.Linq" />@@ -95,7 +104,9 @@<Name>MediaBrowser.Model</Name></ProjectReference></ItemGroup>- <ItemGroup />+ <ItemGroup>+ <None Include="packages.config" />+ </ItemGroup><Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /><!-- To modify your build process, add your task inside one of the targets below and uncomment it.Other similar extension points exist, see Microsoft.Common.targets.diff --git a/MediaBrowser.LocalMetadata/Parsers/EpisodeXmlParser.cs b/MediaBrowser.LocalMetadata/Parsers/EpisodeXmlParser.csindex c4c9ae07fb..e3cc64605f 100644--- a/MediaBrowser.LocalMetadata/Parsers/EpisodeXmlParser.cs+++ b/MediaBrowser.LocalMetadata/Parsers/EpisodeXmlParser.cs@@ -8,6 +8,7 @@ using System.Globalization;using System.IO;using System.Threading;using System.Xml;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.LocalMetadata.Parsersdiff --git a/MediaBrowser.LocalMetadata/Providers/BoxSetXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/BoxSetXmlProvider.csindex 0d4d327034..01eaf33d2d 100644--- a/MediaBrowser.LocalMetadata/Providers/BoxSetXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/Providers/BoxSetXmlProvider.cs@@ -5,6 +5,7 @@ using MediaBrowser.LocalMetadata.Parsers;using MediaBrowser.Model.Logging;using System.IO;using System.Threading;+using CommonIO;namespace MediaBrowser.LocalMetadata.Providers{diff --git a/MediaBrowser.LocalMetadata/Providers/EpisodeXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/EpisodeXmlProvider.csindex 8b181a0435..17ef5fd2e6 100644--- a/MediaBrowser.LocalMetadata/Providers/EpisodeXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/Providers/EpisodeXmlProvider.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Logging;using System.Collections.Generic;using System.IO;using System.Threading;+using CommonIO;namespace MediaBrowser.LocalMetadata.Providers{diff --git a/MediaBrowser.LocalMetadata/Providers/FolderXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/FolderXmlProvider.csindex 6b9450a0b6..20fa889cc4 100644--- a/MediaBrowser.LocalMetadata/Providers/FolderXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/Providers/FolderXmlProvider.cs@@ -1,5 +1,6 @@using System.IO;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Providers;diff --git a/MediaBrowser.LocalMetadata/Providers/GameSystemXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/GameSystemXmlProvider.csindex a6ef9983b6..6abb019b4d 100644--- a/MediaBrowser.LocalMetadata/Providers/GameSystemXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/Providers/GameSystemXmlProvider.cs@@ -1,5 +1,6 @@using System.IO;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Providers;diff --git a/MediaBrowser.LocalMetadata/Providers/GameXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/GameXmlProvider.csindex c0c46b9556..8d1a4d6902 100644--- a/MediaBrowser.LocalMetadata/Providers/GameXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/Providers/GameXmlProvider.cs@@ -5,6 +5,7 @@ using MediaBrowser.LocalMetadata.Parsers;using MediaBrowser.Model.Logging;using System.IO;using System.Threading;+using CommonIO;namespace MediaBrowser.LocalMetadata.Providers{diff --git a/MediaBrowser.LocalMetadata/Providers/MovieXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/MovieXmlProvider.csindex 2d0de082e5..0930e91985 100644--- a/MediaBrowser.LocalMetadata/Providers/MovieXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/Providers/MovieXmlProvider.cs@@ -5,6 +5,7 @@ using MediaBrowser.LocalMetadata.Parsers;using MediaBrowser.Model.Logging;using System.IO;using System.Threading;+using CommonIO;namespace MediaBrowser.LocalMetadata.Providers{diff --git a/MediaBrowser.LocalMetadata/Providers/MusicVideoXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/MusicVideoXmlProvider.csindex 7e31f30800..e24e46310d 100644--- a/MediaBrowser.LocalMetadata/Providers/MusicVideoXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/Providers/MusicVideoXmlProvider.cs@@ -1,5 +1,6 @@using System.IO;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Providers;diff --git a/MediaBrowser.LocalMetadata/Providers/PersonXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/PersonXmlProvider.csindex 32af7011a2..dd3541d56c 100644--- a/MediaBrowser.LocalMetadata/Providers/PersonXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/Providers/PersonXmlProvider.cs@@ -1,5 +1,6 @@using System.IO;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Providers;diff --git a/MediaBrowser.LocalMetadata/Providers/PlaylistXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/PlaylistXmlProvider.csindex f66c6f232a..81c87ee4db 100644--- a/MediaBrowser.LocalMetadata/Providers/PlaylistXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/Providers/PlaylistXmlProvider.cs@@ -5,6 +5,7 @@ using MediaBrowser.LocalMetadata.Parsers;using MediaBrowser.Model.Logging;using System.IO;using System.Threading;+using CommonIO;namespace MediaBrowser.LocalMetadata.Providers{diff --git a/MediaBrowser.LocalMetadata/Providers/SeasonXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/SeasonXmlProvider.csindex 4d68d9c7b0..bea0de88eb 100644--- a/MediaBrowser.LocalMetadata/Providers/SeasonXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/Providers/SeasonXmlProvider.cs@@ -1,5 +1,6 @@using System.IO;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;using MediaBrowser.Controller.Entities.TV;using MediaBrowser.Controller.Providers;diff --git a/MediaBrowser.LocalMetadata/Providers/SeriesXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/SeriesXmlProvider.csindex 17d80d87ad..85bbcbc02b 100644--- a/MediaBrowser.LocalMetadata/Providers/SeriesXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/Providers/SeriesXmlProvider.cs@@ -1,5 +1,6 @@using System.IO;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;using MediaBrowser.Controller.Entities.TV;using MediaBrowser.Controller.Providers;diff --git a/MediaBrowser.LocalMetadata/Providers/VideoXmlProvider.cs b/MediaBrowser.LocalMetadata/Providers/VideoXmlProvider.csindex 17fd9cbd8f..0600161b37 100644--- a/MediaBrowser.LocalMetadata/Providers/VideoXmlProvider.cs+++ b/MediaBrowser.LocalMetadata/Providers/VideoXmlProvider.cs@@ -5,6 +5,7 @@ using MediaBrowser.LocalMetadata.Parsers;using MediaBrowser.Model.Logging;using System.IO;using System.Threading;+using CommonIO;namespace MediaBrowser.LocalMetadata.Providers{diff --git a/MediaBrowser.LocalMetadata/Savers/BoxSetXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/BoxSetXmlSaver.csindex a2180439ef..b709c9b83d 100644--- a/MediaBrowser.LocalMetadata/Savers/BoxSetXmlSaver.cs+++ b/MediaBrowser.LocalMetadata/Savers/BoxSetXmlSaver.cs@@ -6,6 +6,7 @@ using System.Collections.Generic;using System.IO;using System.Text;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.LocalMetadata.Saversdiff --git a/MediaBrowser.LocalMetadata/Savers/EpisodeXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/EpisodeXmlSaver.csindex 284f33de99..dc8a16cd8b 100644--- a/MediaBrowser.LocalMetadata/Savers/EpisodeXmlSaver.cs+++ b/MediaBrowser.LocalMetadata/Savers/EpisodeXmlSaver.cs@@ -9,6 +9,7 @@ using System.IO;using System.Security;using System.Text;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.LocalMetadata.Saversdiff --git a/MediaBrowser.LocalMetadata/Savers/FolderXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/FolderXmlSaver.csindex 655d41255f..73a90ac85c 100644--- a/MediaBrowser.LocalMetadata/Savers/FolderXmlSaver.cs+++ b/MediaBrowser.LocalMetadata/Savers/FolderXmlSaver.cs@@ -9,6 +9,7 @@ using System.Collections.Generic;using System.IO;using System.Text;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.LocalMetadata.Saversdiff --git a/MediaBrowser.LocalMetadata/Savers/GameSystemXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/GameSystemXmlSaver.csindex c6d21655f9..57a8900a43 100644--- a/MediaBrowser.LocalMetadata/Savers/GameSystemXmlSaver.cs+++ b/MediaBrowser.LocalMetadata/Savers/GameSystemXmlSaver.cs@@ -6,6 +6,7 @@ using System.IO;using System.Security;using System.Text;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.LocalMetadata.Saversdiff --git a/MediaBrowser.LocalMetadata/Savers/GameXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/GameXmlSaver.csindex fe5d6b27aa..89c274e12f 100644--- a/MediaBrowser.LocalMetadata/Savers/GameXmlSaver.cs+++ b/MediaBrowser.LocalMetadata/Savers/GameXmlSaver.cs@@ -8,6 +8,7 @@ using System.IO;using System.Security;using System.Text;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.LocalMetadata.Saversdiff --git a/MediaBrowser.LocalMetadata/Savers/MovieXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/MovieXmlSaver.csindex 46d549a3e6..2e3e7aaa1e 100644--- a/MediaBrowser.LocalMetadata/Savers/MovieXmlSaver.cs+++ b/MediaBrowser.LocalMetadata/Savers/MovieXmlSaver.cs@@ -9,6 +9,7 @@ using System.IO;using System.Security;using System.Text;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.LocalMetadata.Saversdiff --git a/MediaBrowser.LocalMetadata/Savers/PersonXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/PersonXmlSaver.csindex d199cb3b8e..481c5967d2 100644--- a/MediaBrowser.LocalMetadata/Savers/PersonXmlSaver.cs+++ b/MediaBrowser.LocalMetadata/Savers/PersonXmlSaver.cs@@ -6,6 +6,7 @@ using System.IO;using System.Security;using System.Text;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.LocalMetadata.Saversdiff --git a/MediaBrowser.LocalMetadata/Savers/PlaylistXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/PlaylistXmlSaver.csindex 4e047252f7..d03b45dcdb 100644--- a/MediaBrowser.LocalMetadata/Savers/PlaylistXmlSaver.cs+++ b/MediaBrowser.LocalMetadata/Savers/PlaylistXmlSaver.cs@@ -7,6 +7,7 @@ using System.IO;using System.Security;using System.Text;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.LocalMetadata.Saversdiff --git a/MediaBrowser.LocalMetadata/Savers/SeriesXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/SeriesXmlSaver.csindex 8150695e7a..9806c4216e 100644--- a/MediaBrowser.LocalMetadata/Savers/SeriesXmlSaver.cs+++ b/MediaBrowser.LocalMetadata/Savers/SeriesXmlSaver.cs@@ -9,6 +9,7 @@ using System.IO;using System.Security;using System.Text;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.LocalMetadata.Saversdiff --git a/MediaBrowser.LocalMetadata/Savers/XmlSaverHelpers.cs b/MediaBrowser.LocalMetadata/Savers/XmlSaverHelpers.csindex b56694a926..c9a4cb5378 100644--- a/MediaBrowser.LocalMetadata/Savers/XmlSaverHelpers.cs+++ b/MediaBrowser.LocalMetadata/Savers/XmlSaverHelpers.cs@@ -14,6 +14,7 @@ using System.Linq;using System.Security;using System.Text;using System.Xml;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.LocalMetadata.Saversdiff --git a/MediaBrowser.LocalMetadata/packages.config b/MediaBrowser.LocalMetadata/packages.confignew file mode 100644index 0000000000..b0aea0390e--- /dev/null+++ b/MediaBrowser.LocalMetadata/packages.config@@ -0,0 +1,5 @@+<?xml version="1.0" encoding="utf-8"?>+<packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" />+ <package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" />+</packages>\ No newline at end of filediff --git a/MediaBrowser.MediaEncoding/Configuration/EncodingConfigurationFactory.cs b/MediaBrowser.MediaEncoding/Configuration/EncodingConfigurationFactory.csindex 81f2a75ffb..1ddb73d110 100644--- a/MediaBrowser.MediaEncoding/Configuration/EncodingConfigurationFactory.cs+++ b/MediaBrowser.MediaEncoding/Configuration/EncodingConfigurationFactory.cs@@ -2,6 +2,7 @@using MediaBrowser.Model.Configuration;using System.Collections.Generic;using System.IO;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.MediaEncoding.Configurationdiff --git a/MediaBrowser.MediaEncoding/Encoder/AudioEncoder.cs b/MediaBrowser.MediaEncoding/Encoder/AudioEncoder.csindex e9204ef5b0..b488741d15 100644--- a/MediaBrowser.MediaEncoding/Encoder/AudioEncoder.cs+++ b/MediaBrowser.MediaEncoding/Encoder/AudioEncoder.cs@@ -9,6 +9,7 @@ using MediaBrowser.Model.IO;using MediaBrowser.Model.Logging;using System;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.MediaEncoding.Encoder{diff --git a/MediaBrowser.MediaEncoding/Encoder/BaseEncoder.cs b/MediaBrowser.MediaEncoding/Encoder/BaseEncoder.csindex a8ea283aeb..912110c045 100644--- a/MediaBrowser.MediaEncoding/Encoder/BaseEncoder.cs+++ b/MediaBrowser.MediaEncoding/Encoder/BaseEncoder.cs@@ -19,6 +19,7 @@ using System.IO;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.MediaEncoding.Encoder{diff --git a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs b/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.csindex aed69ba5b3..f36fca77c8 100644--- a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs+++ b/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs@@ -22,6 +22,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.MediaEncoding.Encoder{diff --git a/MediaBrowser.MediaEncoding/Encoder/VideoEncoder.cs b/MediaBrowser.MediaEncoding/Encoder/VideoEncoder.csindex 49eed9ee52..127145aec3 100644--- a/MediaBrowser.MediaEncoding/Encoder/VideoEncoder.cs+++ b/MediaBrowser.MediaEncoding/Encoder/VideoEncoder.cs@@ -8,6 +8,7 @@ using MediaBrowser.Model.IO;using MediaBrowser.Model.Logging;using System;using System.IO;+using CommonIO;namespace MediaBrowser.MediaEncoding.Encoder{diff --git a/MediaBrowser.MediaEncoding/MediaBrowser.MediaEncoding.csproj b/MediaBrowser.MediaEncoding/MediaBrowser.MediaEncoding.csprojindex de05d9ffd2..ed41efa8b2 100644--- a/MediaBrowser.MediaEncoding/MediaBrowser.MediaEncoding.csproj+++ b/MediaBrowser.MediaEncoding/MediaBrowser.MediaEncoding.csproj@@ -40,9 +40,16 @@<Reference Include="BDInfo"><HintPath>..\packages\MediaBrowser.BdInfo.1.0.0.10\lib\net35\BDInfo.dll</HintPath></Reference>+ <Reference Include="CommonIO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference><Reference Include="DvdLib"><HintPath>..\packages\MediaBrowser.BdInfo.1.0.0.10\lib\net35\DvdLib.dll</HintPath></Reference>+ <Reference Include="Patterns.Logging">+ <HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>+ </Reference><Reference Include="System" /><Reference Include="System.Core" /><Reference Include="System.Xml.Linq" />diff --git a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.csindex 7cf2425a94..ca760e1305 100644--- a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs+++ b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs@@ -8,6 +8,7 @@ using System.Collections.Generic;using System.Globalization;using System.IO;using System.Linq;+using CommonIO;using MediaBrowser.Model.Logging;using MediaBrowser.Model.MediaInfo;diff --git a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.csindex ea4c72b2f5..998937d601 100644--- a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs+++ b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs@@ -18,6 +18,7 @@ using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;using UniversalDetector;namespace MediaBrowser.MediaEncoding.Subtitlesdiff --git a/MediaBrowser.MediaEncoding/packages.config b/MediaBrowser.MediaEncoding/packages.configindex 6e52b72b8f..ac5035d479 100644--- a/MediaBrowser.MediaEncoding/packages.config+++ b/MediaBrowser.MediaEncoding/packages.config@@ -1,4 +1,6 @@<?xml version="1.0" encoding="utf-8"?><packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" /><package id="MediaBrowser.BdInfo" version="1.0.0.10" targetFramework="net45" />+ <package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" /></packages>\ No newline at end of filediff --git a/MediaBrowser.Providers/Books/BookMetadataService.cs b/MediaBrowser.Providers/Books/BookMetadataService.csindex 311082d96a..0d030c0394 100644--- a/MediaBrowser.Providers/Books/BookMetadataService.cs+++ b/MediaBrowser.Providers/Books/BookMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.Books{diff --git a/MediaBrowser.Providers/BoxSets/BoxSetMetadataService.cs b/MediaBrowser.Providers/BoxSets/BoxSetMetadataService.csindex 8b405302eb..cba19a5c29 100644--- a/MediaBrowser.Providers/BoxSets/BoxSetMetadataService.cs+++ b/MediaBrowser.Providers/BoxSets/BoxSetMetadataService.cs@@ -10,6 +10,7 @@ using MediaBrowser.Providers.Manager;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.BoxSets{diff --git a/MediaBrowser.Providers/BoxSets/MovieDbBoxSetProvider.cs b/MediaBrowser.Providers/BoxSets/MovieDbBoxSetProvider.csindex 0fbb2d9902..ae6199a75d 100644--- a/MediaBrowser.Providers/BoxSets/MovieDbBoxSetProvider.cs+++ b/MediaBrowser.Providers/BoxSets/MovieDbBoxSetProvider.cs@@ -18,6 +18,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.BoxSets{diff --git a/MediaBrowser.Providers/Channels/AudioChannelItemMetadataService.cs b/MediaBrowser.Providers/Channels/AudioChannelItemMetadataService.csindex 9d80559f1a..9a1a993d9c 100644--- a/MediaBrowser.Providers/Channels/AudioChannelItemMetadataService.cs+++ b/MediaBrowser.Providers/Channels/AudioChannelItemMetadataService.cs@@ -1,4 +1,5 @@using System.Collections.Generic;+using CommonIO;using MediaBrowser.Common.IO;using MediaBrowser.Controller.Channels;using MediaBrowser.Controller.Configuration;diff --git a/MediaBrowser.Providers/Channels/ChannelMetadataService.cs b/MediaBrowser.Providers/Channels/ChannelMetadataService.csindex faa35b379a..6fd7b25397 100644--- a/MediaBrowser.Providers/Channels/ChannelMetadataService.cs+++ b/MediaBrowser.Providers/Channels/ChannelMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.Channels{diff --git a/MediaBrowser.Providers/Channels/VideoChannelItemMetadataService.cs b/MediaBrowser.Providers/Channels/VideoChannelItemMetadataService.csindex 1e7b5aca83..597ae5e10c 100644--- a/MediaBrowser.Providers/Channels/VideoChannelItemMetadataService.cs+++ b/MediaBrowser.Providers/Channels/VideoChannelItemMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.Channels{diff --git a/MediaBrowser.Providers/Folders/FolderMetadataService.cs b/MediaBrowser.Providers/Folders/FolderMetadataService.csindex d54093da67..c7b60afcca 100644--- a/MediaBrowser.Providers/Folders/FolderMetadataService.cs+++ b/MediaBrowser.Providers/Folders/FolderMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.Folders{diff --git a/MediaBrowser.Providers/Folders/UserViewMetadataService.cs b/MediaBrowser.Providers/Folders/UserViewMetadataService.csindex 70b86830fd..a9366a9d32 100644--- a/MediaBrowser.Providers/Folders/UserViewMetadataService.cs+++ b/MediaBrowser.Providers/Folders/UserViewMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.Folders{diff --git a/MediaBrowser.Providers/GameGenres/GameGenreImageProvider.cs b/MediaBrowser.Providers/GameGenres/GameGenreImageProvider.csindex e994e27c37..9d4b90ff3b 100644--- a/MediaBrowser.Providers/GameGenres/GameGenreImageProvider.cs+++ b/MediaBrowser.Providers/GameGenres/GameGenreImageProvider.cs@@ -12,6 +12,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.GameGenres{diff --git a/MediaBrowser.Providers/GameGenres/GameGenreMetadataService.cs b/MediaBrowser.Providers/GameGenres/GameGenreMetadataService.csindex 957596a309..676c08c562 100644--- a/MediaBrowser.Providers/GameGenres/GameGenreMetadataService.cs+++ b/MediaBrowser.Providers/GameGenres/GameGenreMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.GameGenres{diff --git a/MediaBrowser.Providers/Games/GameMetadataService.cs b/MediaBrowser.Providers/Games/GameMetadataService.csindex b9403aaa66..26359dfb8a 100644--- a/MediaBrowser.Providers/Games/GameMetadataService.cs+++ b/MediaBrowser.Providers/Games/GameMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.Games{diff --git a/MediaBrowser.Providers/Games/GameSystemMetadataService.cs b/MediaBrowser.Providers/Games/GameSystemMetadataService.csindex 24786034d4..112b019572 100644--- a/MediaBrowser.Providers/Games/GameSystemMetadataService.cs+++ b/MediaBrowser.Providers/Games/GameSystemMetadataService.cs@@ -9,6 +9,7 @@ using MediaBrowser.Providers.Manager;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Games{diff --git a/MediaBrowser.Providers/Genres/GenreImageProvider.cs b/MediaBrowser.Providers/Genres/GenreImageProvider.csindex 5d5c2873ac..373f59accc 100644--- a/MediaBrowser.Providers/Genres/GenreImageProvider.cs+++ b/MediaBrowser.Providers/Genres/GenreImageProvider.cs@@ -11,6 +11,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Genres{diff --git a/MediaBrowser.Providers/Genres/GenreMetadataService.cs b/MediaBrowser.Providers/Genres/GenreMetadataService.csindex 5cdd6d847d..a93c33e662 100644--- a/MediaBrowser.Providers/Genres/GenreMetadataService.cs+++ b/MediaBrowser.Providers/Genres/GenreMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.Genres{diff --git a/MediaBrowser.Providers/ImagesByName/ImageUtils.cs b/MediaBrowser.Providers/ImagesByName/ImageUtils.csindex f4aa68b244..fc818b690d 100644--- a/MediaBrowser.Providers/ImagesByName/ImageUtils.cs+++ b/MediaBrowser.Providers/ImagesByName/ImageUtils.cs@@ -7,6 +7,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.ImagesByName{diff --git a/MediaBrowser.Providers/LiveTv/AudioRecordingService.cs b/MediaBrowser.Providers/LiveTv/AudioRecordingService.csindex b3d9d6a724..0798f3ef49 100644--- a/MediaBrowser.Providers/LiveTv/AudioRecordingService.cs+++ b/MediaBrowser.Providers/LiveTv/AudioRecordingService.cs@@ -9,6 +9,7 @@ using MediaBrowser.Providers.Manager;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.LiveTv{diff --git a/MediaBrowser.Providers/LiveTv/ChannelMetadataService.cs b/MediaBrowser.Providers/LiveTv/ChannelMetadataService.csindex 231017cd91..31af0916c6 100644--- a/MediaBrowser.Providers/LiveTv/ChannelMetadataService.cs+++ b/MediaBrowser.Providers/LiveTv/ChannelMetadataService.cs@@ -9,6 +9,7 @@ using MediaBrowser.Providers.Manager;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.LiveTv{diff --git a/MediaBrowser.Providers/LiveTv/ProgramMetadataService.cs b/MediaBrowser.Providers/LiveTv/ProgramMetadataService.csindex 8576993fdd..385f455b24 100644--- a/MediaBrowser.Providers/LiveTv/ProgramMetadataService.cs+++ b/MediaBrowser.Providers/LiveTv/ProgramMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.LiveTv{diff --git a/MediaBrowser.Providers/LiveTv/VideoRecordingService.cs b/MediaBrowser.Providers/LiveTv/VideoRecordingService.csindex 4d8b272851..e80768ff85 100644--- a/MediaBrowser.Providers/LiveTv/VideoRecordingService.cs+++ b/MediaBrowser.Providers/LiveTv/VideoRecordingService.cs@@ -9,6 +9,7 @@ using MediaBrowser.Providers.Manager;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.LiveTv{diff --git a/MediaBrowser.Providers/Manager/ImageSaver.cs b/MediaBrowser.Providers/Manager/ImageSaver.csindex bc52c4f6db..38a5d7e98e 100644--- a/MediaBrowser.Providers/Manager/ImageSaver.cs+++ b/MediaBrowser.Providers/Manager/ImageSaver.cs@@ -16,6 +16,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Manager{diff --git a/MediaBrowser.Providers/Manager/ItemImageProvider.cs b/MediaBrowser.Providers/Manager/ItemImageProvider.csindex 3c412b788b..266d94f127 100644--- a/MediaBrowser.Providers/Manager/ItemImageProvider.cs+++ b/MediaBrowser.Providers/Manager/ItemImageProvider.cs@@ -16,6 +16,7 @@ using System.Linq;using System.Net;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Manager{diff --git a/MediaBrowser.Providers/Manager/MetadataService.cs b/MediaBrowser.Providers/Manager/MetadataService.csindex daf0a5822e..e07c7e3c75 100644--- a/MediaBrowser.Providers/Manager/MetadataService.cs+++ b/MediaBrowser.Providers/Manager/MetadataService.cs@@ -11,6 +11,7 @@ using System.Collections.Generic;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Manager{diff --git a/MediaBrowser.Providers/Manager/ProviderManager.cs b/MediaBrowser.Providers/Manager/ProviderManager.csindex b95f252891..d48b5e3c4d 100644--- a/MediaBrowser.Providers/Manager/ProviderManager.cs+++ b/MediaBrowser.Providers/Manager/ProviderManager.cs@@ -20,6 +20,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Manager{diff --git a/MediaBrowser.Providers/MediaBrowser.Providers.csproj b/MediaBrowser.Providers/MediaBrowser.Providers.csprojindex 1d12426b98..4f235f9592 100644--- a/MediaBrowser.Providers/MediaBrowser.Providers.csproj+++ b/MediaBrowser.Providers/MediaBrowser.Providers.csproj@@ -49,6 +49,10 @@<SpecificVersion>False</SpecificVersion><HintPath>..\packages\MediaBrowser.BdInfo.1.0.0.10\lib\net35\BDInfo.dll</HintPath></Reference>+ <Reference Include="CommonIO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference><Reference Include="DvdLib, Version=1.0.5167.21152, Culture=neutral, PublicKeyToken=7a2f3f5ec8d93575, processorArchitecture=MSIL"><SpecificVersion>False</SpecificVersion><HintPath>..\packages\MediaBrowser.BdInfo.1.0.0.10\lib\net35\DvdLib.dll</HintPath>@@ -57,6 +61,9 @@<SpecificVersion>False</SpecificVersion><HintPath>..\packages\morelinq.1.1.1\lib\net35\MoreLinq.dll</HintPath></Reference>+ <Reference Include="Patterns.Logging">+ <HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>+ </Reference><Reference Include="policy.2.0.taglib-sharp"><HintPath>..\packages\taglib.2.1.0.0\lib\policy.2.0.taglib-sharp.dll</HintPath></Reference>diff --git a/MediaBrowser.Providers/MediaInfo/AudioImageProvider.cs b/MediaBrowser.Providers/MediaInfo/AudioImageProvider.csindex e1775d2594..8884412d27 100644--- a/MediaBrowser.Providers/MediaInfo/AudioImageProvider.cs+++ b/MediaBrowser.Providers/MediaInfo/AudioImageProvider.cs@@ -12,6 +12,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.MediaInfo{diff --git a/MediaBrowser.Providers/MediaInfo/FFProbeProvider.cs b/MediaBrowser.Providers/MediaInfo/FFProbeProvider.csindex 2033107afc..7955191c85 100644--- a/MediaBrowser.Providers/MediaInfo/FFProbeProvider.cs+++ b/MediaBrowser.Providers/MediaInfo/FFProbeProvider.cs@@ -23,6 +23,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.MediaInfo{diff --git a/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs b/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.csindex 0741ed5eb1..7d7d37c83e 100644--- a/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs+++ b/MediaBrowser.Providers/MediaInfo/FFProbeVideoInfo.cs@@ -28,6 +28,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.MediaInfo{diff --git a/MediaBrowser.Providers/MediaInfo/SubtitleResolver.cs b/MediaBrowser.Providers/MediaInfo/SubtitleResolver.csindex 3e282f253f..30995ebad7 100644--- a/MediaBrowser.Providers/MediaInfo/SubtitleResolver.cs+++ b/MediaBrowser.Providers/MediaInfo/SubtitleResolver.cs@@ -8,6 +8,7 @@ using System;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;namespace MediaBrowser.Providers.MediaInfo{diff --git a/MediaBrowser.Providers/MediaInfo/VideoImageProvider.cs b/MediaBrowser.Providers/MediaInfo/VideoImageProvider.csindex 46359731ea..991f47f802 100644--- a/MediaBrowser.Providers/MediaInfo/VideoImageProvider.cs+++ b/MediaBrowser.Providers/MediaInfo/VideoImageProvider.cs@@ -12,6 +12,7 @@ using System;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Providers.MediaInfodiff --git a/MediaBrowser.Providers/Movies/FanArtMovieUpdatesPostScanTask.cs b/MediaBrowser.Providers/Movies/FanArtMovieUpdatesPostScanTask.csindex 629bb97bfd..50b6d3c22c 100644--- a/MediaBrowser.Providers/Movies/FanArtMovieUpdatesPostScanTask.cs+++ b/MediaBrowser.Providers/Movies/FanArtMovieUpdatesPostScanTask.cs@@ -15,6 +15,7 @@ using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Movies{diff --git a/MediaBrowser.Providers/Movies/FanartMovieImageProvider.cs b/MediaBrowser.Providers/Movies/FanartMovieImageProvider.csindex 4a0b529781..cb2e993a0b 100644--- a/MediaBrowser.Providers/Movies/FanartMovieImageProvider.cs+++ b/MediaBrowser.Providers/Movies/FanartMovieImageProvider.cs@@ -19,6 +19,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Providers.TV;namespace MediaBrowser.Providers.Moviesdiff --git a/MediaBrowser.Providers/Movies/GenericMovieDbInfo.cs b/MediaBrowser.Providers/Movies/GenericMovieDbInfo.csindex 504df02d50..55184140e9 100644--- a/MediaBrowser.Providers/Movies/GenericMovieDbInfo.cs+++ b/MediaBrowser.Providers/Movies/GenericMovieDbInfo.cs@@ -13,6 +13,7 @@ using System.Linq;using System.Net;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Providers.Moviesdiff --git a/MediaBrowser.Providers/Movies/MovieDbProvider.cs b/MediaBrowser.Providers/Movies/MovieDbProvider.csindex d458aabc46..20526b3606 100644--- a/MediaBrowser.Providers/Movies/MovieDbProvider.cs+++ b/MediaBrowser.Providers/Movies/MovieDbProvider.cs@@ -18,6 +18,7 @@ using System.Globalization;using System.IO;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Movies{diff --git a/MediaBrowser.Providers/Movies/MovieMetadataService.cs b/MediaBrowser.Providers/Movies/MovieMetadataService.csindex e96e89a786..8757bdd0db 100644--- a/MediaBrowser.Providers/Movies/MovieMetadataService.cs+++ b/MediaBrowser.Providers/Movies/MovieMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.Movies{diff --git a/MediaBrowser.Providers/Movies/MovieUpdatesPrescanTask.cs b/MediaBrowser.Providers/Movies/MovieUpdatesPrescanTask.csindex 972c8e2ea8..278d728dec 100644--- a/MediaBrowser.Providers/Movies/MovieUpdatesPrescanTask.cs+++ b/MediaBrowser.Providers/Movies/MovieUpdatesPrescanTask.cs@@ -15,6 +15,7 @@ using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Movies{diff --git a/MediaBrowser.Providers/Music/AlbumMetadataService.cs b/MediaBrowser.Providers/Music/AlbumMetadataService.csindex 859db37baf..0993e73989 100644--- a/MediaBrowser.Providers/Music/AlbumMetadataService.cs+++ b/MediaBrowser.Providers/Music/AlbumMetadataService.cs@@ -10,6 +10,7 @@ using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Music{diff --git a/MediaBrowser.Providers/Music/ArtistMetadataService.cs b/MediaBrowser.Providers/Music/ArtistMetadataService.csindex 0032aac625..9939ab797b 100644--- a/MediaBrowser.Providers/Music/ArtistMetadataService.cs+++ b/MediaBrowser.Providers/Music/ArtistMetadataService.cs@@ -10,6 +10,7 @@ using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Music{diff --git a/MediaBrowser.Providers/Music/AudioDbAlbumProvider.cs b/MediaBrowser.Providers/Music/AudioDbAlbumProvider.csindex 6437d2471c..47c2fb8de8 100644--- a/MediaBrowser.Providers/Music/AudioDbAlbumProvider.cs+++ b/MediaBrowser.Providers/Music/AudioDbAlbumProvider.cs@@ -14,6 +14,7 @@ using System.Globalization;using System.IO;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Music{diff --git a/MediaBrowser.Providers/Music/AudioDbArtistProvider.cs b/MediaBrowser.Providers/Music/AudioDbArtistProvider.csindex 5164c7df4c..cd4f2d502f 100644--- a/MediaBrowser.Providers/Music/AudioDbArtistProvider.cs+++ b/MediaBrowser.Providers/Music/AudioDbArtistProvider.cs@@ -13,6 +13,7 @@ using System.Collections.Generic;using System.IO;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Music{diff --git a/MediaBrowser.Providers/Music/AudioMetadataService.cs b/MediaBrowser.Providers/Music/AudioMetadataService.csindex b4d50a173d..8e872e403e 100644--- a/MediaBrowser.Providers/Music/AudioMetadataService.cs+++ b/MediaBrowser.Providers/Music/AudioMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.Music{diff --git a/MediaBrowser.Providers/Music/FanArtAlbumProvider.cs b/MediaBrowser.Providers/Music/FanArtAlbumProvider.csindex 8eda5ca96f..6c4fa71e2b 100644--- a/MediaBrowser.Providers/Music/FanArtAlbumProvider.cs+++ b/MediaBrowser.Providers/Music/FanArtAlbumProvider.cs@@ -17,6 +17,7 @@ using System.Text;using System.Threading;using System.Threading.Tasks;using System.Xml;+using CommonIO;namespace MediaBrowser.Providers.Music{diff --git a/MediaBrowser.Providers/Music/FanArtArtistProvider.cs b/MediaBrowser.Providers/Music/FanArtArtistProvider.csindex 07b193f471..72e878366c 100644--- a/MediaBrowser.Providers/Music/FanArtArtistProvider.cs+++ b/MediaBrowser.Providers/Music/FanArtArtistProvider.cs@@ -18,6 +18,7 @@ using System.Text;using System.Threading;using System.Threading.Tasks;using System.Xml;+using CommonIO;namespace MediaBrowser.Providers.Music{diff --git a/MediaBrowser.Providers/Music/FanArtUpdatesPostScanTask.cs b/MediaBrowser.Providers/Music/FanArtUpdatesPostScanTask.csindex 63d92b1e59..c1a2a3f18d 100644--- a/MediaBrowser.Providers/Music/FanArtUpdatesPostScanTask.cs+++ b/MediaBrowser.Providers/Music/FanArtUpdatesPostScanTask.cs@@ -13,6 +13,7 @@ using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Providers.TV;namespace MediaBrowser.Providers.Musicdiff --git a/MediaBrowser.Providers/Music/MusicVideoMetadataService.cs b/MediaBrowser.Providers/Music/MusicVideoMetadataService.csindex 0456dbfba7..4a1fd2f3e1 100644--- a/MediaBrowser.Providers/Music/MusicVideoMetadataService.cs+++ b/MediaBrowser.Providers/Music/MusicVideoMetadataService.cs@@ -8,6 +8,7 @@ using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;using System.Linq;+using CommonIO;namespace MediaBrowser.Providers.Music{diff --git a/MediaBrowser.Providers/MusicGenres/MusicGenreImageProvider.cs b/MediaBrowser.Providers/MusicGenres/MusicGenreImageProvider.csindex 3236567fcb..f59f3f6c8e 100644--- a/MediaBrowser.Providers/MusicGenres/MusicGenreImageProvider.cs+++ b/MediaBrowser.Providers/MusicGenres/MusicGenreImageProvider.cs@@ -13,6 +13,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.MusicGenres{diff --git a/MediaBrowser.Providers/MusicGenres/MusicGenreMetadataService.cs b/MediaBrowser.Providers/MusicGenres/MusicGenreMetadataService.csindex 107b76609c..2f1983d707 100644--- a/MediaBrowser.Providers/MusicGenres/MusicGenreMetadataService.cs+++ b/MediaBrowser.Providers/MusicGenres/MusicGenreMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.MusicGenres{diff --git a/MediaBrowser.Providers/People/MovieDbPersonProvider.cs b/MediaBrowser.Providers/People/MovieDbPersonProvider.csindex 8292964017..095eb44477 100644--- a/MediaBrowser.Providers/People/MovieDbPersonProvider.cs+++ b/MediaBrowser.Providers/People/MovieDbPersonProvider.cs@@ -17,6 +17,7 @@ using System.Linq;using System.Net;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.People{diff --git a/MediaBrowser.Providers/People/PersonMetadataService.cs b/MediaBrowser.Providers/People/PersonMetadataService.csindex 9961ff8dc9..88ce389502 100644--- a/MediaBrowser.Providers/People/PersonMetadataService.cs+++ b/MediaBrowser.Providers/People/PersonMetadataService.cs@@ -9,6 +9,7 @@ using MediaBrowser.Providers.Manager;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.People{diff --git a/MediaBrowser.Providers/Photos/PhotoAlbumMetadataService.cs b/MediaBrowser.Providers/Photos/PhotoAlbumMetadataService.csindex 1c5d7f1b54..05dcafbe7c 100644--- a/MediaBrowser.Providers/Photos/PhotoAlbumMetadataService.cs+++ b/MediaBrowser.Providers/Photos/PhotoAlbumMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.Photos{diff --git a/MediaBrowser.Providers/Photos/PhotoMetadataService.cs b/MediaBrowser.Providers/Photos/PhotoMetadataService.csindex 22a60ea08d..f378c3175c 100644--- a/MediaBrowser.Providers/Photos/PhotoMetadataService.cs+++ b/MediaBrowser.Providers/Photos/PhotoMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.Photos{diff --git a/MediaBrowser.Providers/Playlists/PlaylistMetadataService.cs b/MediaBrowser.Providers/Playlists/PlaylistMetadataService.csindex af4393d189..30e15808f5 100644--- a/MediaBrowser.Providers/Playlists/PlaylistMetadataService.cs+++ b/MediaBrowser.Providers/Playlists/PlaylistMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.Playlists{diff --git a/MediaBrowser.Providers/Studios/StudioMetadataService.cs b/MediaBrowser.Providers/Studios/StudioMetadataService.csindex 5b273d8ca8..feede5dbe4 100644--- a/MediaBrowser.Providers/Studios/StudioMetadataService.cs+++ b/MediaBrowser.Providers/Studios/StudioMetadataService.cs@@ -9,6 +9,7 @@ using MediaBrowser.Providers.Manager;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Studios{diff --git a/MediaBrowser.Providers/Studios/StudiosImageProvider.cs b/MediaBrowser.Providers/Studios/StudiosImageProvider.csindex f46c9a906d..95b8d9bc86 100644--- a/MediaBrowser.Providers/Studios/StudiosImageProvider.cs+++ b/MediaBrowser.Providers/Studios/StudiosImageProvider.cs@@ -12,6 +12,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Studios{diff --git a/MediaBrowser.Providers/Subtitles/SubtitleManager.cs b/MediaBrowser.Providers/Subtitles/SubtitleManager.csindex b07f5b00ad..f0c5cbbd3a 100644--- a/MediaBrowser.Providers/Subtitles/SubtitleManager.cs+++ b/MediaBrowser.Providers/Subtitles/SubtitleManager.cs@@ -17,6 +17,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Subtitles{diff --git a/MediaBrowser.Providers/TV/DummySeasonProvider.cs b/MediaBrowser.Providers/TV/DummySeasonProvider.csindex c61b4f2792..0faaaa702b 100644--- a/MediaBrowser.Providers/TV/DummySeasonProvider.cs+++ b/MediaBrowser.Providers/TV/DummySeasonProvider.cs@@ -10,6 +10,7 @@ using System.Globalization;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Providers.TVdiff --git a/MediaBrowser.Providers/TV/EpisodeMetadataService.cs b/MediaBrowser.Providers/TV/EpisodeMetadataService.csindex 339967eeb2..dde7ade749 100644--- a/MediaBrowser.Providers/TV/EpisodeMetadataService.cs+++ b/MediaBrowser.Providers/TV/EpisodeMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/FanArtSeasonProvider.cs b/MediaBrowser.Providers/TV/FanArtSeasonProvider.csindex 3fbc5d58c6..323d81a017 100644--- a/MediaBrowser.Providers/TV/FanArtSeasonProvider.cs+++ b/MediaBrowser.Providers/TV/FanArtSeasonProvider.cs@@ -18,6 +18,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/FanArtTvUpdatesPostScanTask.cs b/MediaBrowser.Providers/TV/FanArtTvUpdatesPostScanTask.csindex 48b2dcc1bf..71f02e028c 100644--- a/MediaBrowser.Providers/TV/FanArtTvUpdatesPostScanTask.cs+++ b/MediaBrowser.Providers/TV/FanArtTvUpdatesPostScanTask.cs@@ -14,6 +14,7 @@ using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/FanartSeriesProvider.cs b/MediaBrowser.Providers/TV/FanartSeriesProvider.csindex 6879c7bb27..5600c165a1 100644--- a/MediaBrowser.Providers/TV/FanartSeriesProvider.cs+++ b/MediaBrowser.Providers/TV/FanartSeriesProvider.cs@@ -20,6 +20,7 @@ using System.Linq;using System.Net;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/MissingEpisodeProvider.cs b/MediaBrowser.Providers/TV/MissingEpisodeProvider.csindex 1443c524f7..7dd4f13e4d 100644--- a/MediaBrowser.Providers/TV/MissingEpisodeProvider.cs+++ b/MediaBrowser.Providers/TV/MissingEpisodeProvider.cs@@ -15,6 +15,7 @@ using System.Text;using System.Threading;using System.Threading.Tasks;using System.Xml;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Providers.TVdiff --git a/MediaBrowser.Providers/TV/MovieDbEpisodeImageProvider.cs b/MediaBrowser.Providers/TV/MovieDbEpisodeImageProvider.csindex aaa9bbacf5..115eadb96e 100644--- a/MediaBrowser.Providers/TV/MovieDbEpisodeImageProvider.cs+++ b/MediaBrowser.Providers/TV/MovieDbEpisodeImageProvider.cs@@ -16,6 +16,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/MovieDbSeasonProvider.cs b/MediaBrowser.Providers/TV/MovieDbSeasonProvider.csindex fb4ce2c373..6933901927 100644--- a/MediaBrowser.Providers/TV/MovieDbSeasonProvider.cs+++ b/MediaBrowser.Providers/TV/MovieDbSeasonProvider.cs@@ -18,6 +18,7 @@ using System.Linq;using System.Net;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/MovieDbSeriesProvider.cs b/MediaBrowser.Providers/TV/MovieDbSeriesProvider.csindex ef367bc115..994343ee24 100644--- a/MediaBrowser.Providers/TV/MovieDbSeriesProvider.cs+++ b/MediaBrowser.Providers/TV/MovieDbSeriesProvider.cs@@ -19,6 +19,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/SeasonMetadataService.cs b/MediaBrowser.Providers/TV/SeasonMetadataService.csindex 800960c096..22cc19f0c3 100644--- a/MediaBrowser.Providers/TV/SeasonMetadataService.cs+++ b/MediaBrowser.Providers/TV/SeasonMetadataService.cs@@ -9,6 +9,7 @@ using MediaBrowser.Providers.Manager;using System;using System.Collections.Generic;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/SeriesMetadataService.cs b/MediaBrowser.Providers/TV/SeriesMetadataService.csindex 6a038b0acd..453f106ae2 100644--- a/MediaBrowser.Providers/TV/SeriesMetadataService.cs+++ b/MediaBrowser.Providers/TV/SeriesMetadataService.cs@@ -11,6 +11,7 @@ using System;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/SeriesPostScanTask.cs b/MediaBrowser.Providers/TV/SeriesPostScanTask.csindex 991aba6def..003665f1cc 100644--- a/MediaBrowser.Providers/TV/SeriesPostScanTask.cs+++ b/MediaBrowser.Providers/TV/SeriesPostScanTask.cs@@ -10,6 +10,7 @@ using System.Collections.Generic;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Providers.TVdiff --git a/MediaBrowser.Providers/TV/TvdbEpisodeImageProvider.cs b/MediaBrowser.Providers/TV/TvdbEpisodeImageProvider.csindex 52464b88b9..10ceba94c8 100644--- a/MediaBrowser.Providers/TV/TvdbEpisodeImageProvider.cs+++ b/MediaBrowser.Providers/TV/TvdbEpisodeImageProvider.cs@@ -16,6 +16,7 @@ using System.Text;using System.Threading;using System.Threading.Tasks;using System.Xml;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs b/MediaBrowser.Providers/TV/TvdbEpisodeProvider.csindex 5a520ae4cd..ddd07367aa 100644--- a/MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs+++ b/MediaBrowser.Providers/TV/TvdbEpisodeProvider.cs@@ -17,6 +17,7 @@ using System.Text.RegularExpressions;using System.Threading;using System.Threading.Tasks;using System.Xml;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/TvdbPrescanTask.cs b/MediaBrowser.Providers/TV/TvdbPrescanTask.csindex 04e3436c37..6ebbb7c397 100644--- a/MediaBrowser.Providers/TV/TvdbPrescanTask.cs+++ b/MediaBrowser.Providers/TV/TvdbPrescanTask.cs@@ -15,6 +15,7 @@ using System.Text;using System.Threading;using System.Threading.Tasks;using System.Xml;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/TvdbSeasonImageProvider.cs b/MediaBrowser.Providers/TV/TvdbSeasonImageProvider.csindex 0b41872323..e365511a5e 100644--- a/MediaBrowser.Providers/TV/TvdbSeasonImageProvider.cs+++ b/MediaBrowser.Providers/TV/TvdbSeasonImageProvider.cs@@ -17,6 +17,7 @@ using System.Text;using System.Threading;using System.Threading.Tasks;using System.Xml;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/TvdbSeriesImageProvider.cs b/MediaBrowser.Providers/TV/TvdbSeriesImageProvider.csindex 725f4b9580..ae1933c7fa 100644--- a/MediaBrowser.Providers/TV/TvdbSeriesImageProvider.cs+++ b/MediaBrowser.Providers/TV/TvdbSeriesImageProvider.cs@@ -17,6 +17,7 @@ using System.Text;using System.Threading;using System.Threading.Tasks;using System.Xml;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/TV/TvdbSeriesProvider.cs b/MediaBrowser.Providers/TV/TvdbSeriesProvider.csindex 827e8bc53f..ca4c31f755 100644--- a/MediaBrowser.Providers/TV/TvdbSeriesProvider.cs+++ b/MediaBrowser.Providers/TV/TvdbSeriesProvider.cs@@ -22,6 +22,7 @@ using System.Text;using System.Threading;using System.Threading.Tasks;using System.Xml;+using CommonIO;namespace MediaBrowser.Providers.TV{diff --git a/MediaBrowser.Providers/Users/UserMetadataService.cs b/MediaBrowser.Providers/Users/UserMetadataService.csindex 84f2b03802..7c74e23f2b 100644--- a/MediaBrowser.Providers/Users/UserMetadataService.cs+++ b/MediaBrowser.Providers/Users/UserMetadataService.cs@@ -9,6 +9,7 @@ using MediaBrowser.Providers.Manager;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Users{diff --git a/MediaBrowser.Providers/Videos/VideoMetadataService.cs b/MediaBrowser.Providers/Videos/VideoMetadataService.csindex 68c36a84c2..561ac83235 100644--- a/MediaBrowser.Providers/Videos/VideoMetadataService.cs+++ b/MediaBrowser.Providers/Videos/VideoMetadataService.cs@@ -7,6 +7,7 @@ using MediaBrowser.Model.Entities;using MediaBrowser.Model.Logging;using MediaBrowser.Providers.Manager;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Providers.Videos{diff --git a/MediaBrowser.Providers/Years/YearMetadataService.cs b/MediaBrowser.Providers/Years/YearMetadataService.csindex 3e6db76295..1314117567 100644--- a/MediaBrowser.Providers/Years/YearMetadataService.cs+++ b/MediaBrowser.Providers/Years/YearMetadataService.cs@@ -9,6 +9,7 @@ using MediaBrowser.Providers.Manager;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Providers.Years{diff --git a/MediaBrowser.Providers/packages.config b/MediaBrowser.Providers/packages.configindex fe2b571a4f..16bfeaf463 100644--- a/MediaBrowser.Providers/packages.config+++ b/MediaBrowser.Providers/packages.config@@ -1,6 +1,8 @@<?xml version="1.0" encoding="utf-8"?><packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" /><package id="MediaBrowser.BdInfo" version="1.0.0.10" targetFramework="net45" /><package id="morelinq" version="1.1.1" targetFramework="net45" />+ <package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" /><package id="taglib" version="2.1.0.0" targetFramework="net45" /></packages>\ No newline at end of filediff --git a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs b/MediaBrowser.Server.Implementations/Channels/ChannelManager.csindex b71444c740..d17a280311 100644--- a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs+++ b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs@@ -25,6 +25,7 @@ using System.Linq;using System.Net;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Channels{diff --git a/MediaBrowser.Server.Implementations/Collections/CollectionImageProvider.cs b/MediaBrowser.Server.Implementations/Collections/CollectionImageProvider.csindex f5ddbdb785..b88e459809 100644--- a/MediaBrowser.Server.Implementations/Collections/CollectionImageProvider.cs+++ b/MediaBrowser.Server.Implementations/Collections/CollectionImageProvider.cs@@ -12,6 +12,7 @@ using MoreLinq;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Collections{diff --git a/MediaBrowser.Server.Implementations/Collections/CollectionManager.cs b/MediaBrowser.Server.Implementations/Collections/CollectionManager.csindex 430bae38e6..ac27a0ab4e 100644--- a/MediaBrowser.Server.Implementations/Collections/CollectionManager.cs+++ b/MediaBrowser.Server.Implementations/Collections/CollectionManager.cs@@ -12,6 +12,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Collections{diff --git a/MediaBrowser.Server.Implementations/Collections/CollectionsDynamicFolder.cs b/MediaBrowser.Server.Implementations/Collections/CollectionsDynamicFolder.csindex 0fc7fb3f63..85b143a409 100644--- a/MediaBrowser.Server.Implementations/Collections/CollectionsDynamicFolder.cs+++ b/MediaBrowser.Server.Implementations/Collections/CollectionsDynamicFolder.cs@@ -1,6 +1,7 @@using MediaBrowser.Common.Configuration;using MediaBrowser.Controller.Entities;using System.IO;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.Collectionsdiff --git a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs b/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.csindex 050b79db78..968e4ef1da 100644--- a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs+++ b/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs@@ -15,6 +15,7 @@ using MediaBrowser.Model.Serialization;using System;using System.IO;using System.Linq;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.Configurationdiff --git a/MediaBrowser.Server.Implementations/Connect/ConnectEntryPoint.cs b/MediaBrowser.Server.Implementations/Connect/ConnectEntryPoint.csindex a8900fa5b1..c7e4379318 100644--- a/MediaBrowser.Server.Implementations/Connect/ConnectEntryPoint.cs+++ b/MediaBrowser.Server.Implementations/Connect/ConnectEntryPoint.cs@@ -10,6 +10,7 @@ using System.IO;using System.Net;using System.Text;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.Connectdiff --git a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs b/MediaBrowser.Server.Implementations/Connect/ConnectManager.csindex f6e91528d5..4864462913 100644--- a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs+++ b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs@@ -23,6 +23,7 @@ using System.Net;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.Connectdiff --git a/MediaBrowser.Server.Implementations/Devices/CameraUploadsFolder.cs b/MediaBrowser.Server.Implementations/Devices/CameraUploadsFolder.csindex 15567703d9..6d7265972f 100644--- a/MediaBrowser.Server.Implementations/Devices/CameraUploadsFolder.cs+++ b/MediaBrowser.Server.Implementations/Devices/CameraUploadsFolder.cs@@ -3,6 +3,7 @@ using MediaBrowser.Controller.Entities;using System;using System.IO;using System.Linq;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.Devicesdiff --git a/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs b/MediaBrowser.Server.Implementations/Devices/DeviceManager.csindex 548a2222a9..3615146257 100644--- a/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs+++ b/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs@@ -17,6 +17,7 @@ using System.Collections.Generic;using System.IO;using System.Linq;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Devices{diff --git a/MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs b/MediaBrowser.Server.Implementations/Devices/DeviceRepository.csindex 853217826c..43b1e693cc 100644--- a/MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs+++ b/MediaBrowser.Server.Implementations/Devices/DeviceRepository.cs@@ -12,6 +12,7 @@ using System.Collections.Generic;using System.IO;using System.Linq;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Devices{diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.csindex c1daa525a2..6e86794a21 100644--- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs+++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs@@ -26,6 +26,7 @@ using System;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;namespace MediaBrowser.Server.Implementations.Dto{diff --git a/MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.cs b/MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.csindex 932e94b2af..9a20505a54 100644--- a/MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.cs+++ b/MediaBrowser.Server.Implementations/EntryPoints/Notifications/RemoteNotifications.cs@@ -13,6 +13,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.EntryPoints.Notifications{diff --git a/MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs b/MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.csindex dc5b070220..e36813d11c 100644--- a/MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs+++ b/MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs@@ -17,6 +17,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.FileOrganization{diff --git a/MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs b/MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.csindex a6116ab096..839a85adb9 100644--- a/MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs+++ b/MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs@@ -13,6 +13,7 @@ using System;using System.IO;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.FileOrganization{diff --git a/MediaBrowser.Server.Implementations/FileOrganization/OrganizerScheduledTask.cs b/MediaBrowser.Server.Implementations/FileOrganization/OrganizerScheduledTask.csindex f993e1fc33..f1fe5539f9 100644--- a/MediaBrowser.Server.Implementations/FileOrganization/OrganizerScheduledTask.cs+++ b/MediaBrowser.Server.Implementations/FileOrganization/OrganizerScheduledTask.cs@@ -10,6 +10,7 @@ using System;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.FileOrganization{diff --git a/MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs b/MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.csindex 6b91f7cf4b..9a65ef6603 100644--- a/MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs+++ b/MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs@@ -11,6 +11,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.FileOrganization{diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.csindex 9dc8d94e29..080441dda4 100644--- a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs@@ -12,6 +12,7 @@ using System.IO;using System.Net;using System.Text;using System.Threading.Tasks;+using CommonIO;using MimeTypes = MediaBrowser.Model.Net.MimeTypes;namespace MediaBrowser.Server.Implementations.HttpServerdiff --git a/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs b/MediaBrowser.Server.Implementations/IO/LibraryMonitor.csindex 0a2b6f9af6..f4a3ba8df5 100644--- a/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs+++ b/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs@@ -15,6 +15,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Controller;namespace MediaBrowser.Server.Implementations.IOdiff --git a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.csindex ce3f0c66c9..3ead061ca0 100644--- a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs+++ b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs@@ -15,6 +15,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.Introsdiff --git a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.csindex be8c1cfbd7..9035d6479f 100644--- a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs+++ b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs@@ -7,6 +7,7 @@ using System;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;namespace MediaBrowser.Server.Implementations.Library{diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.csindex ec740c05f4..93e660fd36 100644--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs@@ -34,6 +34,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Model.Extensions;using MoreLinq;using SortOrder = MediaBrowser.Model.Entities.SortOrder;diff --git a/MediaBrowser.Server.Implementations/Library/MediaSourceManager.cs b/MediaBrowser.Server.Implementations/Library/MediaSourceManager.csindex b72da4d102..2f23aad1b4 100644--- a/MediaBrowser.Server.Implementations/Library/MediaSourceManager.cs+++ b/MediaBrowser.Server.Implementations/Library/MediaSourceManager.cs@@ -15,6 +15,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.Librarydiff --git a/MediaBrowser.Server.Implementations/Library/ResolverHelper.cs b/MediaBrowser.Server.Implementations/Library/ResolverHelper.csindex 2339364ac0..100241d90e 100644--- a/MediaBrowser.Server.Implementations/Library/ResolverHelper.cs+++ b/MediaBrowser.Server.Implementations/Library/ResolverHelper.cs@@ -6,6 +6,7 @@ using System;using System.IO;using System.Linq;using System.Text.RegularExpressions;+using CommonIO;namespace MediaBrowser.Server.Implementations.Library{diff --git a/MediaBrowser.Server.Implementations/Library/Resolvers/Audio/MusicAlbumResolver.cs b/MediaBrowser.Server.Implementations/Library/Resolvers/Audio/MusicAlbumResolver.csindex 80edd4097a..26e767c205 100644--- a/MediaBrowser.Server.Implementations/Library/Resolvers/Audio/MusicAlbumResolver.cs+++ b/MediaBrowser.Server.Implementations/Library/Resolvers/Audio/MusicAlbumResolver.cs@@ -10,6 +10,7 @@ using MediaBrowser.Server.Implementations.Logging;using System;using System.Collections.Generic;using System.IO;+using CommonIO;namespace MediaBrowser.Server.Implementations.Library.Resolvers.Audio{diff --git a/MediaBrowser.Server.Implementations/Library/Resolvers/Audio/MusicArtistResolver.cs b/MediaBrowser.Server.Implementations/Library/Resolvers/Audio/MusicArtistResolver.csindex 9f3f248653..97a31990ee 100644--- a/MediaBrowser.Server.Implementations/Library/Resolvers/Audio/MusicArtistResolver.cs+++ b/MediaBrowser.Server.Implementations/Library/Resolvers/Audio/MusicArtistResolver.cs@@ -9,6 +9,7 @@ using MediaBrowser.Model.Logging;using System;using System.IO;using System.Linq;+using CommonIO;namespace MediaBrowser.Server.Implementations.Library.Resolvers.Audio{diff --git a/MediaBrowser.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs b/MediaBrowser.Server.Implementations/Library/Resolvers/Movies/MovieResolver.csindex f88ff80f4f..121567e015 100644--- a/MediaBrowser.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs+++ b/MediaBrowser.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs@@ -13,6 +13,7 @@ using System;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.Library.Resolvers.Moviesdiff --git a/MediaBrowser.Server.Implementations/Library/Resolvers/SpecialFolderResolver.cs b/MediaBrowser.Server.Implementations/Library/Resolvers/SpecialFolderResolver.csindex 31b2d8b0f9..cde44122e6 100644--- a/MediaBrowser.Server.Implementations/Library/Resolvers/SpecialFolderResolver.cs+++ b/MediaBrowser.Server.Implementations/Library/Resolvers/SpecialFolderResolver.cs@@ -6,6 +6,7 @@ using MediaBrowser.Controller.Resolvers;using System;using System.IO;using System.Linq;+using CommonIO;namespace MediaBrowser.Server.Implementations.Library.Resolvers{diff --git a/MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeriesResolver.cs b/MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeriesResolver.csindex e5106f96a6..19bd4a1a31 100644--- a/MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeriesResolver.cs+++ b/MediaBrowser.Server.Implementations/Library/Resolvers/TV/SeriesResolver.cs@@ -12,6 +12,7 @@ using System;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;namespace MediaBrowser.Server.Implementations.Library.Resolvers.TV{diff --git a/MediaBrowser.Server.Implementations/Library/UserManager.cs b/MediaBrowser.Server.Implementations/Library/UserManager.csindex a8fc7b4aa4..3ef625db67 100644--- a/MediaBrowser.Server.Implementations/Library/UserManager.cs+++ b/MediaBrowser.Server.Implementations/Library/UserManager.cs@@ -30,6 +30,7 @@ using System.Security.Cryptography;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Library{diff --git a/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs b/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.csindex c6b294e838..fb36b59479 100644--- a/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs+++ b/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs@@ -11,6 +11,7 @@ using System.Collections.Generic;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.Library.Validatorsdiff --git a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.csindex f913d03614..ca5cd5499d 100644--- a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs@@ -26,6 +26,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.Extensions;namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTVdiff --git a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/ItemDataProvider.cs b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/ItemDataProvider.csindex 2c8917ab4f..d89c1c0cb6 100644--- a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/ItemDataProvider.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/ItemDataProvider.cs@@ -4,6 +4,7 @@ using System;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTVdiff --git a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/SeriesTimerManager.cs b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/SeriesTimerManager.csindex 5636588858..6d88c7c0a5 100644--- a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/SeriesTimerManager.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/SeriesTimerManager.cs@@ -2,6 +2,7 @@using MediaBrowser.Model.Logging;using MediaBrowser.Model.Serialization;using System;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTVdiff --git a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/TimerManager.csindex 64a5b73392..94ad5e5cec 100644--- a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs@@ -7,6 +7,7 @@ using System;using System.Collections.Concurrent;using System.Linq;using System.Threading;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTVdiff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.csindex ee5af23555..b89fb9ff6b 100644--- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs@@ -29,6 +29,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.LiveTv{diff --git a/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/M3UTunerHost.cs b/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/M3UTunerHost.csindex a26ed7a2af..7fe3950b9d 100644--- a/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/M3UTunerHost.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/M3UTunerHost.cs@@ -12,6 +12,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;using MediaBrowser.Common.Net;using MediaBrowser.Model.Serialization;diff --git a/MediaBrowser.Server.Implementations/Localization/LocalizationManager.cs b/MediaBrowser.Server.Implementations/Localization/LocalizationManager.csindex e776f43114..cf6eb8f9d7 100644--- a/MediaBrowser.Server.Implementations/Localization/LocalizationManager.cs+++ b/MediaBrowser.Server.Implementations/Localization/LocalizationManager.cs@@ -12,6 +12,7 @@ using System.Globalization;using System.IO;using System.Linq;using System.Reflection;+using CommonIO;namespace MediaBrowser.Server.Implementations.Localization{diff --git a/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj b/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csprojindex 186db6792f..81c26f2b98 100644--- a/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj+++ b/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj@@ -42,6 +42,10 @@<WarningLevel>4</WarningLevel></PropertyGroup><ItemGroup>+ <Reference Include="CommonIO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference><Reference Include="Interfaces.IO"><HintPath>..\packages\Interfaces.IO.1.0.0.5\lib\portable-net45+sl4+wp71+win8+wpa81\Interfaces.IO.dll</HintPath></Reference>diff --git a/MediaBrowser.Server.Implementations/MediaEncoder/EncodingManager.cs b/MediaBrowser.Server.Implementations/MediaEncoder/EncodingManager.csindex 550d76f449..bd634ed739 100644--- a/MediaBrowser.Server.Implementations/MediaEncoder/EncodingManager.cs+++ b/MediaBrowser.Server.Implementations/MediaEncoder/EncodingManager.cs@@ -14,6 +14,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.MediaEncoder{diff --git a/MediaBrowser.Server.Implementations/News/NewsEntryPoint.cs b/MediaBrowser.Server.Implementations/News/NewsEntryPoint.csindex 65698ec997..e8f910f81b 100644--- a/MediaBrowser.Server.Implementations/News/NewsEntryPoint.cs+++ b/MediaBrowser.Server.Implementations/News/NewsEntryPoint.cs@@ -16,6 +16,7 @@ using System.Linq;using System.Threading;using System.Threading.Tasks;using System.Xml;+using CommonIO;namespace MediaBrowser.Server.Implementations.News{diff --git a/MediaBrowser.Server.Implementations/Persistence/CleanDatabaseScheduledTask.cs b/MediaBrowser.Server.Implementations/Persistence/CleanDatabaseScheduledTask.csindex 709ed5ec9a..eeea846492 100644--- a/MediaBrowser.Server.Implementations/Persistence/CleanDatabaseScheduledTask.cs+++ b/MediaBrowser.Server.Implementations/Persistence/CleanDatabaseScheduledTask.cs@@ -12,6 +12,7 @@ using System;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Controller.Entities.Audio;namespace MediaBrowser.Server.Implementations.Persistencediff --git a/MediaBrowser.Server.Implementations/Photos/BaseDynamicImageProvider.cs b/MediaBrowser.Server.Implementations/Photos/BaseDynamicImageProvider.csindex bd5c571fe1..cc0140d689 100644--- a/MediaBrowser.Server.Implementations/Photos/BaseDynamicImageProvider.cs+++ b/MediaBrowser.Server.Implementations/Photos/BaseDynamicImageProvider.cs@@ -13,6 +13,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Photos{diff --git a/MediaBrowser.Server.Implementations/Photos/PhotoAlbumImageProvider.cs b/MediaBrowser.Server.Implementations/Photos/PhotoAlbumImageProvider.csindex b55c76b8f8..71f68e8577 100644--- a/MediaBrowser.Server.Implementations/Photos/PhotoAlbumImageProvider.cs+++ b/MediaBrowser.Server.Implementations/Photos/PhotoAlbumImageProvider.cs@@ -6,6 +6,7 @@ using MediaBrowser.Controller.Providers;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Photos{diff --git a/MediaBrowser.Server.Implementations/Playlists/ManualPlaylistsFolder.cs b/MediaBrowser.Server.Implementations/Playlists/ManualPlaylistsFolder.csindex 0daef052df..4d3e091b1d 100644--- a/MediaBrowser.Server.Implementations/Playlists/ManualPlaylistsFolder.cs+++ b/MediaBrowser.Server.Implementations/Playlists/ManualPlaylistsFolder.cs@@ -4,6 +4,7 @@ using MediaBrowser.Controller.Playlists;using System.Collections.Generic;using System.IO;using System.Linq;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.Playlistsdiff --git a/MediaBrowser.Server.Implementations/Playlists/PlaylistImageProvider.cs b/MediaBrowser.Server.Implementations/Playlists/PlaylistImageProvider.csindex dcd9d21ea0..d9e9fac2a8 100644--- a/MediaBrowser.Server.Implementations/Playlists/PlaylistImageProvider.cs+++ b/MediaBrowser.Server.Implementations/Playlists/PlaylistImageProvider.cs@@ -12,6 +12,7 @@ using MoreLinq;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Playlists{diff --git a/MediaBrowser.Server.Implementations/Playlists/PlaylistManager.cs b/MediaBrowser.Server.Implementations/Playlists/PlaylistManager.csindex 53f2211d36..a0d80598a7 100644--- a/MediaBrowser.Server.Implementations/Playlists/PlaylistManager.cs+++ b/MediaBrowser.Server.Implementations/Playlists/PlaylistManager.cs@@ -13,6 +13,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Playlists{diff --git a/MediaBrowser.Server.Implementations/ScheduledTasks/ChapterImagesTask.cs b/MediaBrowser.Server.Implementations/ScheduledTasks/ChapterImagesTask.csindex f8dc08e269..355603fae8 100644--- a/MediaBrowser.Server.Implementations/ScheduledTasks/ChapterImagesTask.cs+++ b/MediaBrowser.Server.Implementations/ScheduledTasks/ChapterImagesTask.cs@@ -11,6 +11,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Common.IO;namespace MediaBrowser.Server.Implementations.ScheduledTasksdiff --git a/MediaBrowser.Server.Implementations/ScheduledTasks/RefreshIntrosTask.cs b/MediaBrowser.Server.Implementations/ScheduledTasks/RefreshIntrosTask.csindex a65b46f640..90682d5b02 100644--- a/MediaBrowser.Server.Implementations/ScheduledTasks/RefreshIntrosTask.cs+++ b/MediaBrowser.Server.Implementations/ScheduledTasks/RefreshIntrosTask.cs@@ -5,6 +5,7 @@ using System;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.ScheduledTasks{diff --git a/MediaBrowser.Server.Implementations/Sync/MediaSync.cs b/MediaBrowser.Server.Implementations/Sync/MediaSync.csindex 83dd13c05d..d4cb701415 100644--- a/MediaBrowser.Server.Implementations/Sync/MediaSync.cs+++ b/MediaBrowser.Server.Implementations/Sync/MediaSync.cs@@ -18,6 +18,7 @@ using System.Security.Cryptography;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;using Interfaces.IO;namespace MediaBrowser.Server.Implementations.Syncdiff --git a/MediaBrowser.Server.Implementations/Sync/MultiProviderSync.cs b/MediaBrowser.Server.Implementations/Sync/MultiProviderSync.csindex 6f09e96f0f..dca831f73f 100644--- a/MediaBrowser.Server.Implementations/Sync/MultiProviderSync.cs+++ b/MediaBrowser.Server.Implementations/Sync/MultiProviderSync.cs@@ -10,6 +10,7 @@ using System.Collections.Generic;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Sync{diff --git a/MediaBrowser.Server.Implementations/Sync/ServerSyncScheduledTask.cs b/MediaBrowser.Server.Implementations/Sync/ServerSyncScheduledTask.csindex 9477a23f19..52c9f9ceef 100644--- a/MediaBrowser.Server.Implementations/Sync/ServerSyncScheduledTask.cs+++ b/MediaBrowser.Server.Implementations/Sync/ServerSyncScheduledTask.cs@@ -9,6 +9,7 @@ using System.Collections.Generic;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Sync{diff --git a/MediaBrowser.Server.Implementations/Sync/SyncConvertScheduledTask.cs b/MediaBrowser.Server.Implementations/Sync/SyncConvertScheduledTask.csindex 5347e1d83b..2efed79927 100644--- a/MediaBrowser.Server.Implementations/Sync/SyncConvertScheduledTask.cs+++ b/MediaBrowser.Server.Implementations/Sync/SyncConvertScheduledTask.cs@@ -10,6 +10,7 @@ using System;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Sync{diff --git a/MediaBrowser.Server.Implementations/Sync/SyncJobProcessor.cs b/MediaBrowser.Server.Implementations/Sync/SyncJobProcessor.csindex 7d3624665f..95934908da 100644--- a/MediaBrowser.Server.Implementations/Sync/SyncJobProcessor.cs+++ b/MediaBrowser.Server.Implementations/Sync/SyncJobProcessor.cs@@ -23,6 +23,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Sync{diff --git a/MediaBrowser.Server.Implementations/Sync/SyncManager.cs b/MediaBrowser.Server.Implementations/Sync/SyncManager.csindex 15d1968777..fb843b5f71 100644--- a/MediaBrowser.Server.Implementations/Sync/SyncManager.cs+++ b/MediaBrowser.Server.Implementations/Sync/SyncManager.cs@@ -32,6 +32,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.Sync{diff --git a/MediaBrowser.Server.Implementations/Sync/TargetDataProvider.cs b/MediaBrowser.Server.Implementations/Sync/TargetDataProvider.csindex 676adad342..41d56d9596 100644--- a/MediaBrowser.Server.Implementations/Sync/TargetDataProvider.cs+++ b/MediaBrowser.Server.Implementations/Sync/TargetDataProvider.cs@@ -11,6 +11,7 @@ using System.IO;using System.Linq;using System.Threading;using System.Threading.Tasks;+using CommonIO;using Interfaces.IO;namespace MediaBrowser.Server.Implementations.Syncdiff --git a/MediaBrowser.Server.Implementations/UserViews/CollectionFolderImageProvider.cs b/MediaBrowser.Server.Implementations/UserViews/CollectionFolderImageProvider.csindex 7054515b6f..a699bfabfc 100644--- a/MediaBrowser.Server.Implementations/UserViews/CollectionFolderImageProvider.cs+++ b/MediaBrowser.Server.Implementations/UserViews/CollectionFolderImageProvider.cs@@ -12,6 +12,7 @@ using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.UserViews{diff --git a/MediaBrowser.Server.Implementations/UserViews/DynamicImageProvider.cs b/MediaBrowser.Server.Implementations/UserViews/DynamicImageProvider.csindex 2f5702983b..2b18218a8c 100644--- a/MediaBrowser.Server.Implementations/UserViews/DynamicImageProvider.cs+++ b/MediaBrowser.Server.Implementations/UserViews/DynamicImageProvider.cs@@ -13,6 +13,7 @@ using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Implementations.UserViews{diff --git a/MediaBrowser.Server.Implementations/packages.config b/MediaBrowser.Server.Implementations/packages.configindex ac32c1f7cd..d4b42ac086 100644--- a/MediaBrowser.Server.Implementations/packages.config+++ b/MediaBrowser.Server.Implementations/packages.config@@ -1,5 +1,6 @@<?xml version="1.0" encoding="utf-8"?><packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" /><package id="Interfaces.IO" version="1.0.0.5" targetFramework="net45" /><package id="MediaBrowser.Naming" version="1.0.0.38" targetFramework="net45" /><package id="Mono.Nat" version="1.2.24.0" targetFramework="net45" />diff --git a/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj b/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csprojindex cd010e1c13..76f61afeac 100644--- a/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj+++ b/MediaBrowser.Server.Mono/MediaBrowser.Server.Mono.csproj@@ -53,6 +53,9 @@<Prefer32Bit>false</Prefer32Bit></PropertyGroup><ItemGroup>+ <Reference Include="CommonIO">+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference><Reference Include="Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL"><SpecificVersion>False</SpecificVersion><HintPath>..\packages\Mono.Posix.4.0.0.0\lib\net40\Mono.Posix.dll</HintPath>@@ -62,6 +65,10 @@<HintPath>..\ThirdParty\Mono.Security\Mono.Security.dll</HintPath><Private>False</Private></Reference>+ <Reference Include="Patterns.Logging, Version=1.0.5494.41209, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>+ </Reference><Reference Include="System" /><Reference Include="ServiceStack.Interfaces"><HintPath>..\ThirdParty\ServiceStack\ServiceStack.Interfaces.dll</HintPath>diff --git a/MediaBrowser.Server.Mono/Program.cs b/MediaBrowser.Server.Mono/Program.csindex 7b201e5556..636d855158 100644--- a/MediaBrowser.Server.Mono/Program.cs+++ b/MediaBrowser.Server.Mono/Program.cs@@ -14,6 +14,8 @@ using System.Net.Security;using System.Reflection;using System.Security.Cryptography.X509Certificates;using System.Threading.Tasks;+using CommonIO;+using MediaBrowser.Server.Implementations.Logging;namespace MediaBrowser.Server.Mono{@@ -75,7 +77,8 @@ namespace MediaBrowser.Server.Mono// Allow all https requestsServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });- var fileSystem = new CommonFileSystem(logManager.GetLogger("FileSystem"), false, true);+ var fileSystem = new ManagedFileSystem(new PatternsLogger(logManager.GetLogger("FileSystem")), false, true);+ fileSystem.AddShortcutHandler(new MbLinkShortcutHandler(fileSystem));var nativeApp = new NativeApp();diff --git a/MediaBrowser.Server.Mono/packages.config b/MediaBrowser.Server.Mono/packages.configindex 120360cd44..ddb2b92023 100644--- a/MediaBrowser.Server.Mono/packages.config+++ b/MediaBrowser.Server.Mono/packages.config@@ -1,4 +1,6 @@<?xml version="1.0" encoding="utf-8"?><packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" /><package id="Mono.Posix" version="4.0.0.0" targetFramework="net45" />+ <package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" /></packages>\ No newline at end of filediff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.csindex 29841011bd..f1833f4fc0 100644--- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs+++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs@@ -99,6 +99,7 @@ using System.Linq;using System.Reflection;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Startup.Common{diff --git a/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs b/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.csindex 16864898a6..00df7593b0 100644--- a/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs+++ b/MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloader.cs@@ -12,6 +12,7 @@ using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.Server.Startup.Common.FFMpeg{diff --git a/MediaBrowser.Server.Startup.Common/FFMpeg/FFmpegValidator.cs b/MediaBrowser.Server.Startup.Common/FFMpeg/FFmpegValidator.csindex d3388f47e5..5c3ada82b4 100644--- a/MediaBrowser.Server.Startup.Common/FFMpeg/FFmpegValidator.cs+++ b/MediaBrowser.Server.Startup.Common/FFMpeg/FFmpegValidator.cs@@ -8,6 +8,7 @@ using System.IO;using System.Text;using MediaBrowser.Common.IO;using System.Collections.Generic;+using CommonIO;namespace MediaBrowser.Server.Startup.Common.FFMpeg{diff --git a/MediaBrowser.Server.Startup.Common/MbLinkShortcutHandler.cs b/MediaBrowser.Server.Startup.Common/MbLinkShortcutHandler.csnew file mode 100644index 0000000000..14588b427a--- /dev/null+++ b/MediaBrowser.Server.Startup.Common/MbLinkShortcutHandler.cs@@ -0,0 +1,53 @@+using System;+using System.IO;+using CommonIO;++namespace MediaBrowser.Server.Startup.Common+{+ public class MbLinkShortcutHandler : IShortcutHandler+ {+ private readonly IFileSystem _fileSystem;++ public MbLinkShortcutHandler(IFileSystem fileSystem)+ {+ _fileSystem = fileSystem;+ }++ public string Extension+ {+ get { return ".mblink"; }+ }++ public string Resolve(string shortcutPath)+ {+ if (string.IsNullOrEmpty(shortcutPath))+ {+ throw new ArgumentNullException("filenshortcutPathame");+ }++ if (string.Equals(Path.GetExtension(shortcutPath), ".mblink", StringComparison.OrdinalIgnoreCase))+ {+ var path = _fileSystem.ReadAllText(shortcutPath);++ return _fileSystem.NormalizePath(path);+ }++ return null;+ }++ public void Create(string shortcutPath, string targetPath)+ {+ if (string.IsNullOrEmpty(shortcutPath))+ {+ throw new ArgumentNullException("shortcutPath");+ }++ if (string.IsNullOrEmpty(targetPath))+ {+ throw new ArgumentNullException("targetPath");+ }++ File.WriteAllText(shortcutPath, targetPath);+ }+ }+}diff --git a/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj b/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csprojindex 4653e6ac77..86ceb4e6a8 100644--- a/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj+++ b/MediaBrowser.Server.Startup.Common/MediaBrowser.Server.Startup.Common.csproj@@ -32,10 +32,17 @@<WarningLevel>4</WarningLevel></PropertyGroup><ItemGroup>+ <Reference Include="CommonIO">+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference><Reference Include="Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL"><SpecificVersion>False</SpecificVersion><HintPath>..\packages\Mono.Posix.4.0.0.0\lib\net40\Mono.Posix.dll</HintPath></Reference>+ <Reference Include="Patterns.Logging, Version=1.0.5494.41209, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>+ </Reference><Reference Include="ServiceStack.Interfaces, Version=4.0.0.0, Culture=neutral, PublicKeyToken=e06fbc6124f57c43, processorArchitecture=MSIL"><SpecificVersion>False</SpecificVersion><HintPath>..\ThirdParty\ServiceStack\ServiceStack.Interfaces.dll</HintPath>@@ -63,6 +70,7 @@<Compile Include="FFMpeg\FFMpegInfo.cs" /><Compile Include="FFMpeg\FFmpegValidator.cs" /><Compile Include="INativeApp.cs" />+ <Compile Include="MbLinkShortcutHandler.cs" /><Compile Include="Migrations\DeleteDlnaProfiles.cs" /><Compile Include="Migrations\DeprecatePlugins.cs" /><Compile Include="Migrations\IVersionMigration.cs" />diff --git a/MediaBrowser.Server.Startup.Common/Migrations/DeleteDlnaProfiles.cs b/MediaBrowser.Server.Startup.Common/Migrations/DeleteDlnaProfiles.csindex 166c2627f1..7b61522202 100644--- a/MediaBrowser.Server.Startup.Common/Migrations/DeleteDlnaProfiles.cs+++ b/MediaBrowser.Server.Startup.Common/Migrations/DeleteDlnaProfiles.cs@@ -1,6 +1,7 @@using MediaBrowser.Common.IO;using MediaBrowser.Controller;using System.IO;+using CommonIO;namespace MediaBrowser.Server.Startup.Common.Migrations{diff --git a/MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.cs b/MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.csindex afdd4e623f..a7f1d332eb 100644--- a/MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.cs+++ b/MediaBrowser.Server.Startup.Common/Migrations/DeprecatePlugins.cs@@ -1,6 +1,7 @@using MediaBrowser.Common.IO;using MediaBrowser.Controller;using System.IO;+using CommonIO;namespace MediaBrowser.Server.Startup.Common.Migrations{diff --git a/MediaBrowser.Server.Startup.Common/Migrations/MigrateUserFolders.cs b/MediaBrowser.Server.Startup.Common/Migrations/MigrateUserFolders.csindex 1dfe4c0b5d..4a40090f06 100644--- a/MediaBrowser.Server.Startup.Common/Migrations/MigrateUserFolders.cs+++ b/MediaBrowser.Server.Startup.Common/Migrations/MigrateUserFolders.cs@@ -3,6 +3,7 @@ using MediaBrowser.Controller;using System;using System.IO;using System.Linq;+using CommonIO;namespace MediaBrowser.Server.Startup.Common.Migrations{diff --git a/MediaBrowser.Server.Startup.Common/packages.config b/MediaBrowser.Server.Startup.Common/packages.configindex 120360cd44..ddb2b92023 100644--- a/MediaBrowser.Server.Startup.Common/packages.config+++ b/MediaBrowser.Server.Startup.Common/packages.config@@ -1,4 +1,6 @@<?xml version="1.0" encoding="utf-8"?><packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" /><package id="Mono.Posix" version="4.0.0.0" targetFramework="net45" />+ <package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" /></packages>\ No newline at end of filediff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.csindex d7b8b2aed4..a051cea677 100644--- a/MediaBrowser.ServerApplication/MainStartup.cs+++ b/MediaBrowser.ServerApplication/MainStartup.cs@@ -17,6 +17,8 @@ using System.ServiceProcess;using System.Threading;using System.Threading.Tasks;using System.Windows.Forms;+using CommonIO.Windows;+using MediaBrowser.Server.Implementations.Logging;namespace MediaBrowser.ServerApplication{@@ -201,7 +203,8 @@ namespace MediaBrowser.ServerApplication/// <param name="options">The options.</param>private static void RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, bool runService, StartupOptions options){- var fileSystem = new NativeFileSystem(logManager.GetLogger("FileSystem"), false);+ var fileSystem = new WindowsFileSystem(new PatternsLogger(logManager.GetLogger("FileSystem")));+ fileSystem.AddShortcutHandler(new MbLinkShortcutHandler(fileSystem));var nativeApp = new WindowsApp(fileSystem){diff --git a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csprojindex c0830c8c94..e29c183cb3 100644--- a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj+++ b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj@@ -60,12 +60,19 @@<Prefer32Bit>true</Prefer32Bit></PropertyGroup><ItemGroup>+ <Reference Include="CommonIO">+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference><Reference Include="ImageMagickSharp"><HintPath>..\packages\ImageMagickSharp.1.0.0.16\lib\net45\ImageMagickSharp.dll</HintPath></Reference><Reference Include="MediaBrowser.IsoMounter"><HintPath>..\packages\MediaBrowser.IsoMounting.3.0.69\lib\net45\MediaBrowser.IsoMounter.dll</HintPath></Reference>+ <Reference Include="Patterns.Logging, Version=1.0.5494.41209, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>+ </Reference><Reference Include="pfmclrapi"><HintPath>..\packages\MediaBrowser.IsoMounting.3.0.69\lib\net45\pfmclrapi.dll</HintPath></Reference>@@ -99,7 +106,6 @@<Compile Include="BackgroundServiceInstaller.cs"><SubType>Component</SubType></Compile>- <Compile Include="Native\NativeFileSystem.cs" /><Compile Include="MainForm.cs"><SubType>Form</SubType></Compile>diff --git a/MediaBrowser.ServerApplication/Native/Autorun.cs b/MediaBrowser.ServerApplication/Native/Autorun.csindex dd2a775655..2cacaae8ed 100644--- a/MediaBrowser.ServerApplication/Native/Autorun.cs+++ b/MediaBrowser.ServerApplication/Native/Autorun.cs@@ -1,6 +1,7 @@using MediaBrowser.Common.IO;using System;using System.IO;+using CommonIO;namespace MediaBrowser.ServerApplication.Native{diff --git a/MediaBrowser.ServerApplication/Native/NativeFileSystem.cs b/MediaBrowser.ServerApplication/Native/NativeFileSystem.csdeleted file mode 100644index 90ebe7e2d0..0000000000--- a/MediaBrowser.ServerApplication/Native/NativeFileSystem.cs+++ /dev/null@@ -1,419 +0,0 @@-using MediaBrowser.Common.Implementations.IO;-using MediaBrowser.Model.Logging;-using System;-using System.IO;-using System.Runtime.InteropServices;-using System.Security;-using System.Text;--namespace MediaBrowser.ServerApplication.Native-{- public class NativeFileSystem : CommonFileSystem- {- public NativeFileSystem(ILogger logger, bool usePresetInvalidFileNameChars)- : base(logger, true, usePresetInvalidFileNameChars)- {- }-- public override bool IsShortcut(string filename)- {- return base.IsShortcut(filename) ||- string.Equals(Path.GetExtension(filename), ".lnk", StringComparison.OrdinalIgnoreCase);- }-- public override string ResolveShortcut(string filename)- {- var path = base.ResolveShortcut(filename);-- if (!string.IsNullOrEmpty(path))- {- return path;- }-- if (string.Equals(Path.GetExtension(filename), ".lnk", StringComparison.OrdinalIgnoreCase))- {- return ResolveLnk(filename);- }-- return null;- }-- private string ResolveLnk(string filename)- {- var link = new ShellLink();- ((IPersistFile)link).Load(filename, NativeMethods.STGM_READ);- // ((IShellLinkW)link).Resolve(hwnd, 0)- var sb = new StringBuilder(NativeMethods.MAX_PATH);- WIN32_FIND_DATA data;- ((IShellLinkW)link).GetPath(sb, sb.Capacity, out data, 0);- return sb.ToString();- }- }-- /// <summary>- /// Class NativeMethods- /// </summary>- [SuppressUnmanagedCodeSecurity]- public static class NativeMethods- {- /// <summary>- /// The MA x_ PATH- /// </summary>- public const int MAX_PATH = 260;- /// <summary>- /// The MA x_ ALTERNATE- /// </summary>- public const int MAX_ALTERNATE = 14;- /// <summary>- /// The INVALI d_ HANDL e_ VALUE- /// </summary>- public static IntPtr INVALID_HANDLE_VALUE = new IntPtr(-1);- /// <summary>- /// The STG m_ READ- /// </summary>- public const uint STGM_READ = 0;- }-- /// <summary>- /// Struct FILETIME- /// </summary>- [StructLayout(LayoutKind.Sequential)]- public struct FILETIME- {- /// <summary>- /// The dw low date time- /// </summary>- public uint dwLowDateTime;- /// <summary>- /// The dw high date time- /// </summary>- public uint dwHighDateTime;- }-- /// <summary>- /// Struct WIN32_FIND_DATA- /// </summary>- [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]- public struct WIN32_FIND_DATA- {- /// <summary>- /// The dw file attributes- /// </summary>- public FileAttributes dwFileAttributes;- /// <summary>- /// The ft creation time- /// </summary>- public FILETIME ftCreationTime;- /// <summary>- /// The ft last access time- /// </summary>- public FILETIME ftLastAccessTime;- /// <summary>- /// The ft last write time- /// </summary>- public FILETIME ftLastWriteTime;- /// <summary>- /// The n file size high- /// </summary>- public int nFileSizeHigh;- /// <summary>- /// The n file size low- /// </summary>- public int nFileSizeLow;- /// <summary>- /// The dw reserved0- /// </summary>- public int dwReserved0;- /// <summary>- /// The dw reserved1- /// </summary>- public int dwReserved1;-- /// <summary>- /// The c file name- /// </summary>- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = NativeMethods.MAX_PATH)]- public string cFileName;-- /// <summary>- /// This will always be null when FINDEX_INFO_LEVELS = basic- /// </summary>- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = NativeMethods.MAX_ALTERNATE)]- public string cAlternate;-- /// <summary>- /// Gets or sets the path.- /// </summary>- /// <value>The path.</value>- public string Path { get; set; }-- /// <summary>- /// Returns a <see cref="System.String" /> that represents this instance.- /// </summary>- /// <returns>A <see cref="System.String" /> that represents this instance.</returns>- public override string ToString()- {- return Path ?? string.Empty;- }- }-- /// <summary>- /// Enum SLGP_FLAGS- /// </summary>- [Flags]- public enum SLGP_FLAGS- {- /// <summary>- /// Retrieves the standard short (8.3 format) file name- /// </summary>- SLGP_SHORTPATH = 0x1,- /// <summary>- /// Retrieves the Universal Naming Convention (UNC) path name of the file- /// </summary>- SLGP_UNCPRIORITY = 0x2,- /// <summary>- /// Retrieves the raw path name. A raw path is something that might not exist and may include environment variables that need to be expanded- /// </summary>- SLGP_RAWPATH = 0x4- }- /// <summary>- /// Enum SLR_FLAGS- /// </summary>- [Flags]- public enum SLR_FLAGS- {- /// <summary>- /// Do not display a dialog box if the link cannot be resolved. When SLR_NO_UI is set,- /// the high-order word of fFlags can be set to a time-out value that specifies the- /// maximum amount of time to be spent resolving the link. The function returns if the- /// link cannot be resolved within the time-out duration. If the high-order word is set- /// to zero, the time-out duration will be set to the default value of 3,000 milliseconds- /// (3 seconds). To specify a value, set the high word of fFlags to the desired time-out- /// duration, in milliseconds.- /// </summary>- SLR_NO_UI = 0x1,- /// <summary>- /// Obsolete and no longer used- /// </summary>- SLR_ANY_MATCH = 0x2,- /// <summary>- /// If the link object has changed, update its path and list of identifiers.- /// If SLR_UPDATE is set, you do not need to call IPersistFile::IsDirty to determine- /// whether or not the link object has changed.- /// </summary>- SLR_UPDATE = 0x4,- /// <summary>- /// Do not update the link information- /// </summary>- SLR_NOUPDATE = 0x8,- /// <summary>- /// Do not execute the search heuristics- /// </summary>- SLR_NOSEARCH = 0x10,- /// <summary>- /// Do not use distributed link tracking- /// </summary>- SLR_NOTRACK = 0x20,- /// <summary>- /// Disable distributed link tracking. By default, distributed link tracking tracks- /// removable media across multiple devices based on the volume name. It also uses the- /// Universal Naming Convention (UNC) path to track remote file systems whose drive letter- /// has changed. Setting SLR_NOLINKINFO disables both types of tracking.- /// </summary>- SLR_NOLINKINFO = 0x40,- /// <summary>- /// Call the Microsoft Windows Installer- /// </summary>- SLR_INVOKE_MSI = 0x80- }-- /// <summary>- /// The IShellLink interface allows Shell links to be created, modified, and resolved- /// </summary>- [ComImport, InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("000214F9-0000-0000-C000-000000000046")]- public interface IShellLinkW- {- /// <summary>- /// Retrieves the path and file name of a Shell link object- /// </summary>- /// <param name="pszFile">The PSZ file.</param>- /// <param name="cchMaxPath">The CCH max path.</param>- /// <param name="pfd">The PFD.</param>- /// <param name="fFlags">The f flags.</param>- void GetPath([Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszFile, int cchMaxPath, out WIN32_FIND_DATA pfd, SLGP_FLAGS fFlags);- /// <summary>- /// Retrieves the list of item identifiers for a Shell link object- /// </summary>- /// <param name="ppidl">The ppidl.</param>- void GetIDList(out IntPtr ppidl);- /// <summary>- /// Sets the pointer to an item identifier list (PIDL) for a Shell link object.- /// </summary>- /// <param name="pidl">The pidl.</param>- void SetIDList(IntPtr pidl);- /// <summary>- /// Retrieves the description string for a Shell link object- /// </summary>- /// <param name="pszName">Name of the PSZ.</param>- /// <param name="cchMaxName">Name of the CCH max.</param>- void GetDescription([Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszName, int cchMaxName);- /// <summary>- /// Sets the description for a Shell link object. The description can be any application-defined string- /// </summary>- /// <param name="pszName">Name of the PSZ.</param>- void SetDescription([MarshalAs(UnmanagedType.LPWStr)] string pszName);- /// <summary>- /// Retrieves the name of the working directory for a Shell link object- /// </summary>- /// <param name="pszDir">The PSZ dir.</param>- /// <param name="cchMaxPath">The CCH max path.</param>- void GetWorkingDirectory([Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszDir, int cchMaxPath);- /// <summary>- /// Sets the name of the working directory for a Shell link object- /// </summary>- /// <param name="pszDir">The PSZ dir.</param>- void SetWorkingDirectory([MarshalAs(UnmanagedType.LPWStr)] string pszDir);- /// <summary>- /// Retrieves the command-line arguments associated with a Shell link object- /// </summary>- /// <param name="pszArgs">The PSZ args.</param>- /// <param name="cchMaxPath">The CCH max path.</param>- void GetArguments([Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszArgs, int cchMaxPath);- /// <summary>- /// Sets the command-line arguments for a Shell link object- /// </summary>- /// <param name="pszArgs">The PSZ args.</param>- void SetArguments([MarshalAs(UnmanagedType.LPWStr)] string pszArgs);- /// <summary>- /// Retrieves the hot key for a Shell link object- /// </summary>- /// <param name="pwHotkey">The pw hotkey.</param>- void GetHotkey(out short pwHotkey);- /// <summary>- /// Sets a hot key for a Shell link object- /// </summary>- /// <param name="wHotkey">The w hotkey.</param>- void SetHotkey(short wHotkey);- /// <summary>- /// Retrieves the show command for a Shell link object- /// </summary>- /// <param name="piShowCmd">The pi show CMD.</param>- void GetShowCmd(out int piShowCmd);- /// <summary>- /// Sets the show command for a Shell link object. The show command sets the initial show state of the window.- /// </summary>- /// <param name="iShowCmd">The i show CMD.</param>- void SetShowCmd(int iShowCmd);- /// <summary>- /// Retrieves the location (path and index) of the icon for a Shell link object- /// </summary>- /// <param name="pszIconPath">The PSZ icon path.</param>- /// <param name="cchIconPath">The CCH icon path.</param>- /// <param name="piIcon">The pi icon.</param>- void GetIconLocation([Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszIconPath,- int cchIconPath, out int piIcon);- /// <summary>- /// Sets the location (path and index) of the icon for a Shell link object- /// </summary>- /// <param name="pszIconPath">The PSZ icon path.</param>- /// <param name="iIcon">The i icon.</param>- void SetIconLocation([MarshalAs(UnmanagedType.LPWStr)] string pszIconPath, int iIcon);- /// <summary>- /// Sets the relative path to the Shell link object- /// </summary>- /// <param name="pszPathRel">The PSZ path rel.</param>- /// <param name="dwReserved">The dw reserved.</param>- void SetRelativePath([MarshalAs(UnmanagedType.LPWStr)] string pszPathRel, int dwReserved);- /// <summary>- /// Attempts to find the target of a Shell link, even if it has been moved or renamed- /// </summary>- /// <param name="hwnd">The HWND.</param>- /// <param name="fFlags">The f flags.</param>- void Resolve(IntPtr hwnd, SLR_FLAGS fFlags);- /// <summary>- /// Sets the path and file name of a Shell link object- /// </summary>- /// <param name="pszFile">The PSZ file.</param>- void SetPath([MarshalAs(UnmanagedType.LPWStr)] string pszFile);-- }-- /// <summary>- /// Interface IPersist- /// </summary>- [ComImport, Guid("0000010c-0000-0000-c000-000000000046"),- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]- public interface IPersist- {- /// <summary>- /// Gets the class ID.- /// </summary>- /// <param name="pClassID">The p class ID.</param>- [PreserveSig]- void GetClassID(out Guid pClassID);- }-- /// <summary>- /// Interface IPersistFile- /// </summary>- [ComImport, Guid("0000010b-0000-0000-C000-000000000046"),- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]- public interface IPersistFile : IPersist- {- /// <summary>- /// Gets the class ID.- /// </summary>- /// <param name="pClassID">The p class ID.</param>- new void GetClassID(out Guid pClassID);- /// <summary>- /// Determines whether this instance is dirty.- /// </summary>- [PreserveSig]- int IsDirty();-- /// <summary>- /// Loads the specified PSZ file name.- /// </summary>- /// <param name="pszFileName">Name of the PSZ file.</param>- /// <param name="dwMode">The dw mode.</param>- [PreserveSig]- void Load([In, MarshalAs(UnmanagedType.LPWStr)]- string pszFileName, uint dwMode);-- /// <summary>- /// Saves the specified PSZ file name.- /// </summary>- /// <param name="pszFileName">Name of the PSZ file.</param>- /// <param name="remember">if set to <c>true</c> [remember].</param>- [PreserveSig]- void Save([In, MarshalAs(UnmanagedType.LPWStr)] string pszFileName,- [In, MarshalAs(UnmanagedType.Bool)] bool remember);-- /// <summary>- /// Saves the completed.- /// </summary>- /// <param name="pszFileName">Name of the PSZ file.</param>- [PreserveSig]- void SaveCompleted([In, MarshalAs(UnmanagedType.LPWStr)] string pszFileName);-- /// <summary>- /// Gets the cur file.- /// </summary>- /// <param name="ppszFileName">Name of the PPSZ file.</param>- [PreserveSig]- void GetCurFile([In, MarshalAs(UnmanagedType.LPWStr)] string ppszFileName);- }-- // CLSID_ShellLink from ShlGuid.h- /// <summary>- /// Class ShellLink- /// </summary>- [- ComImport,- Guid("00021401-0000-0000-C000-000000000046")- ]- public class ShellLink- {- }--}diff --git a/MediaBrowser.ServerApplication/Native/WindowsApp.cs b/MediaBrowser.ServerApplication/Native/WindowsApp.csindex 956ba52768..a89fcd9266 100644--- a/MediaBrowser.ServerApplication/Native/WindowsApp.cs+++ b/MediaBrowser.ServerApplication/Native/WindowsApp.cs@@ -6,6 +6,7 @@ using MediaBrowser.Server.Startup.Common;using MediaBrowser.ServerApplication.Networking;using System.Collections.Generic;using System.Reflection;+using CommonIO;namespace MediaBrowser.ServerApplication.Native{diff --git a/MediaBrowser.ServerApplication/packages.config b/MediaBrowser.ServerApplication/packages.configindex 5007cf8af3..fd055ab951 100644--- a/MediaBrowser.ServerApplication/packages.config+++ b/MediaBrowser.ServerApplication/packages.config@@ -1,6 +1,8 @@<?xml version="1.0" encoding="utf-8"?><packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" /><package id="ImageMagickSharp" version="1.0.0.16" targetFramework="net45" /><package id="MediaBrowser.IsoMounting" version="3.0.69" targetFramework="net45" />+ <package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" /><package id="System.Data.SQLite.Core" version="1.0.94.0" targetFramework="net45" /></packages>\ No newline at end of filediff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.csindex fd7bb82c26..3cb4a4ceec 100644--- a/MediaBrowser.WebDashboard/Api/DashboardService.cs+++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs@@ -17,6 +17,7 @@ using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;+using CommonIO;using WebMarkupMin.Core.Minifiers;namespace MediaBrowser.WebDashboard.Apidiff --git a/MediaBrowser.WebDashboard/Api/PackageCreator.cs b/MediaBrowser.WebDashboard/Api/PackageCreator.csindex 9e9c1f1b9d..08f94e167a 100644--- a/MediaBrowser.WebDashboard/Api/PackageCreator.cs+++ b/MediaBrowser.WebDashboard/Api/PackageCreator.cs@@ -9,6 +9,7 @@ using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;+using CommonIO;using MediaBrowser.Controller.Net;using WebMarkupMin.Core;using WebMarkupMin.Core.Minifiers;diff --git a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csprojindex 72915bab01..046d6dbdfd 100644--- a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj+++ b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj@@ -48,6 +48,13 @@<RunPostBuildEvent>Always</RunPostBuildEvent></PropertyGroup><ItemGroup>+ <Reference Include="CommonIO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference>+ <Reference Include="Patterns.Logging">+ <HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>+ </Reference><Reference Include="System" /><Reference Include="System.Core" /><Reference Include="System.Data.DataSetExtensions" />diff --git a/MediaBrowser.WebDashboard/packages.config b/MediaBrowser.WebDashboard/packages.configindex cb5a323478..0494c8f19f 100644--- a/MediaBrowser.WebDashboard/packages.config+++ b/MediaBrowser.WebDashboard/packages.config@@ -1,5 +1,7 @@<?xml version="1.0" encoding="utf-8"?><packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" /><package id="MediaBrowser.ApiClient.Javascript" version="3.0.249" targetFramework="net45" />+ <package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" /><package id="WebMarkupMin.Core" version="1.0.0" targetFramework="net45" /></packages>\ No newline at end of filediff --git a/MediaBrowser.XbmcMetadata/MediaBrowser.XbmcMetadata.csproj b/MediaBrowser.XbmcMetadata/MediaBrowser.XbmcMetadata.csprojindex ac4bd83100..4be937b9b7 100644--- a/MediaBrowser.XbmcMetadata/MediaBrowser.XbmcMetadata.csproj+++ b/MediaBrowser.XbmcMetadata/MediaBrowser.XbmcMetadata.csproj@@ -11,6 +11,8 @@<AssemblyName>MediaBrowser.XbmcMetadata</AssemblyName><TargetFrameworkVersion>v4.5</TargetFrameworkVersion><FileAlignment>512</FileAlignment>+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>+ <RestorePackages>true</RestorePackages></PropertyGroup><PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "><DebugSymbols>true</DebugSymbols>@@ -30,6 +32,13 @@<WarningLevel>4</WarningLevel></PropertyGroup><ItemGroup>+ <Reference Include="CommonIO, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">+ <SpecificVersion>False</SpecificVersion>+ <HintPath>..\packages\CommonIO.1.0.0.3\lib\net45\CommonIO.dll</HintPath>+ </Reference>+ <Reference Include="Patterns.Logging">+ <HintPath>..\packages\Patterns.Logging.1.0.0.2\lib\portable-net45+sl4+wp71+win8+wpa81\Patterns.Logging.dll</HintPath>+ </Reference><Reference Include="System" /><Reference Include="System.Core" /><Reference Include="System.Xml.Linq" />@@ -81,6 +90,9 @@<Name>MediaBrowser.Model</Name></ProjectReference></ItemGroup>+ <ItemGroup>+ <None Include="packages.config" />+ </ItemGroup><Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /><!-- To modify your build process, add your task inside one of the targets below and uncomment it.Other similar extension points exist, see Microsoft.Common.targets.diff --git a/MediaBrowser.XbmcMetadata/Providers/AlbumNfoProvider.cs b/MediaBrowser.XbmcMetadata/Providers/AlbumNfoProvider.csindex fef9741f89..d9c85b92e1 100644--- a/MediaBrowser.XbmcMetadata/Providers/AlbumNfoProvider.cs+++ b/MediaBrowser.XbmcMetadata/Providers/AlbumNfoProvider.cs@@ -6,6 +6,7 @@ using MediaBrowser.Model.Logging;using MediaBrowser.XbmcMetadata.Parsers;using System.IO;using System.Threading;+using CommonIO;namespace MediaBrowser.XbmcMetadata.Providers{diff --git a/MediaBrowser.XbmcMetadata/Providers/ArtistNfoProvider.cs b/MediaBrowser.XbmcMetadata/Providers/ArtistNfoProvider.csindex ee933997bb..fe49066360 100644--- a/MediaBrowser.XbmcMetadata/Providers/ArtistNfoProvider.cs+++ b/MediaBrowser.XbmcMetadata/Providers/ArtistNfoProvider.cs@@ -6,6 +6,7 @@ using MediaBrowser.Model.Logging;using MediaBrowser.XbmcMetadata.Parsers;using System.IO;using System.Threading;+using CommonIO;namespace MediaBrowser.XbmcMetadata.Providers{diff --git a/MediaBrowser.XbmcMetadata/Providers/BaseNfoProvider.cs b/MediaBrowser.XbmcMetadata/Providers/BaseNfoProvider.csindex 04cb2abcba..abac7f5446 100644--- a/MediaBrowser.XbmcMetadata/Providers/BaseNfoProvider.cs+++ b/MediaBrowser.XbmcMetadata/Providers/BaseNfoProvider.cs@@ -6,6 +6,7 @@ using System;using System.IO;using System.Threading;using System.Threading.Tasks;+using CommonIO;namespace MediaBrowser.XbmcMetadata.Providers{diff --git a/MediaBrowser.XbmcMetadata/Providers/BaseVideoNfoProvider.cs b/MediaBrowser.XbmcMetadata/Providers/BaseVideoNfoProvider.csindex 90f41282d5..605a09709c 100644--- a/MediaBrowser.XbmcMetadata/Providers/BaseVideoNfoProvider.cs+++ b/MediaBrowser.XbmcMetadata/Providers/BaseVideoNfoProvider.cs@@ -8,6 +8,7 @@ using MediaBrowser.XbmcMetadata.Savers;using System.IO;using System.Linq;using System.Threading;+using CommonIO;namespace MediaBrowser.XbmcMetadata.Providers{diff --git a/MediaBrowser.XbmcMetadata/Providers/EpisodeNfoProvider.cs b/MediaBrowser.XbmcMetadata/Providers/EpisodeNfoProvider.csindex 746ac7e649..470a40f09c 100644--- a/MediaBrowser.XbmcMetadata/Providers/EpisodeNfoProvider.cs+++ b/MediaBrowser.XbmcMetadata/Providers/EpisodeNfoProvider.cs@@ -8,6 +8,7 @@ using MediaBrowser.XbmcMetadata.Parsers;using System.Collections.Generic;using System.IO;using System.Threading;+using CommonIO;namespace MediaBrowser.XbmcMetadata.Providers{diff --git a/MediaBrowser.XbmcMetadata/Providers/MovieNfoProvider.cs b/MediaBrowser.XbmcMetadata/Providers/MovieNfoProvider.csindex 6c9949fc2f..62a8c6047c 100644--- a/MediaBrowser.XbmcMetadata/Providers/MovieNfoProvider.cs+++ b/MediaBrowser.XbmcMetadata/Providers/MovieNfoProvider.cs@@ -1,4 +1,5 @@-using MediaBrowser.Common.Configuration;+using CommonIO;+using MediaBrowser.Common.Configuration;using MediaBrowser.Common.IO;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Entities.Movies;diff --git a/MediaBrowser.XbmcMetadata/Providers/SeasonNfoProvider.cs b/MediaBrowser.XbmcMetadata/Providers/SeasonNfoProvider.csindex 738a8e2df8..777f2f8474 100644--- a/MediaBrowser.XbmcMetadata/Providers/SeasonNfoProvider.cs+++ b/MediaBrowser.XbmcMetadata/Providers/SeasonNfoProvider.cs@@ -6,6 +6,7 @@ using MediaBrowser.Model.Logging;using MediaBrowser.XbmcMetadata.Parsers;using System.IO;using System.Threading;+using CommonIO;namespace MediaBrowser.XbmcMetadata.Providers{diff --git a/MediaBrowser.XbmcMetadata/Providers/SeriesNfoProvider.cs b/MediaBrowser.XbmcMetadata/Providers/SeriesNfoProvider.csindex aff67dcaa6..50649fbc07 100644--- a/MediaBrowser.XbmcMetadata/Providers/SeriesNfoProvider.cs+++ b/MediaBrowser.XbmcMetadata/Providers/SeriesNfoProvider.cs@@ -6,6 +6,7 @@ using MediaBrowser.Model.Logging;using MediaBrowser.XbmcMetadata.Parsers;using System.IO;using System.Threading;+using CommonIO;namespace MediaBrowser.XbmcMetadata.Providers{diff --git a/MediaBrowser.XbmcMetadata/Savers/AlbumNfoSaver.cs b/MediaBrowser.XbmcMetadata/Savers/AlbumNfoSaver.csindex 9bd9ac65ed..660322c611 100644--- a/MediaBrowser.XbmcMetadata/Savers/AlbumNfoSaver.cs+++ b/MediaBrowser.XbmcMetadata/Savers/AlbumNfoSaver.cs@@ -10,6 +10,7 @@ using System.Globalization;using System.IO;using System.Linq;using System.Xml;+using CommonIO;namespace MediaBrowser.XbmcMetadata.Savers{diff --git a/MediaBrowser.XbmcMetadata/Savers/ArtistNfoSaver.cs b/MediaBrowser.XbmcMetadata/Savers/ArtistNfoSaver.csindex b8ea745884..c9fad8a7ce 100644--- a/MediaBrowser.XbmcMetadata/Savers/ArtistNfoSaver.cs+++ b/MediaBrowser.XbmcMetadata/Savers/ArtistNfoSaver.cs@@ -10,6 +10,7 @@ using System.Globalization;using System.IO;using System.Linq;using System.Xml;+using CommonIO;namespace MediaBrowser.XbmcMetadata.Savers{diff --git a/MediaBrowser.XbmcMetadata/Savers/BaseNfoSaver.cs b/MediaBrowser.XbmcMetadata/Savers/BaseNfoSaver.csindex 93750a9863..a49b17b342 100644--- a/MediaBrowser.XbmcMetadata/Savers/BaseNfoSaver.cs+++ b/MediaBrowser.XbmcMetadata/Savers/BaseNfoSaver.cs@@ -19,6 +19,7 @@ using System.Linq;using System.Text;using System.Threading;using System.Xml;+using CommonIO;using MediaBrowser.Model.Extensions;namespace MediaBrowser.XbmcMetadata.Saversdiff --git a/MediaBrowser.XbmcMetadata/Savers/EpisodeNfoSaver.cs b/MediaBrowser.XbmcMetadata/Savers/EpisodeNfoSaver.csindex 6fd396e40f..b085217945 100644--- a/MediaBrowser.XbmcMetadata/Savers/EpisodeNfoSaver.cs+++ b/MediaBrowser.XbmcMetadata/Savers/EpisodeNfoSaver.cs@@ -9,6 +9,7 @@ using System.Collections.Generic;using System.Globalization;using System.IO;using System.Xml;+using CommonIO;namespace MediaBrowser.XbmcMetadata.Savers{diff --git a/MediaBrowser.XbmcMetadata/Savers/MovieNfoSaver.cs b/MediaBrowser.XbmcMetadata/Savers/MovieNfoSaver.csindex ddbd528d9d..e3e3eb162e 100644--- a/MediaBrowser.XbmcMetadata/Savers/MovieNfoSaver.cs+++ b/MediaBrowser.XbmcMetadata/Savers/MovieNfoSaver.cs@@ -11,6 +11,7 @@ using System.Collections.Generic;using System.IO;using System.Linq;using System.Xml;+using CommonIO;namespace MediaBrowser.XbmcMetadata.Savers{diff --git a/MediaBrowser.XbmcMetadata/Savers/SeasonNfoSaver.cs b/MediaBrowser.XbmcMetadata/Savers/SeasonNfoSaver.csindex ccac720fcc..edb468d644 100644--- a/MediaBrowser.XbmcMetadata/Savers/SeasonNfoSaver.cs+++ b/MediaBrowser.XbmcMetadata/Savers/SeasonNfoSaver.cs@@ -8,6 +8,7 @@ using System.Collections.Generic;using System.Globalization;using System.IO;using System.Xml;+using CommonIO;namespace MediaBrowser.XbmcMetadata.Savers{diff --git a/MediaBrowser.XbmcMetadata/Savers/SeriesNfoSaver.cs b/MediaBrowser.XbmcMetadata/Savers/SeriesNfoSaver.csindex 099e8dbd7f..11df3ae6f3 100644--- a/MediaBrowser.XbmcMetadata/Savers/SeriesNfoSaver.cs+++ b/MediaBrowser.XbmcMetadata/Savers/SeriesNfoSaver.cs@@ -9,6 +9,7 @@ using System.Collections.Generic;using System.Globalization;using System.IO;using System.Xml;+using CommonIO;namespace MediaBrowser.XbmcMetadata.Savers{diff --git a/MediaBrowser.XbmcMetadata/packages.config b/MediaBrowser.XbmcMetadata/packages.confignew file mode 100644index 0000000000..b0aea0390e--- /dev/null+++ b/MediaBrowser.XbmcMetadata/packages.config@@ -0,0 +1,5 @@+<?xml version="1.0" encoding="utf-8"?>+<packages>+ <package id="CommonIO" version="1.0.0.3" targetFramework="net45" />+ <package id="Patterns.Logging" version="1.0.0.2" targetFramework="net45" />+</packages>\ No newline at end of file